1. Introduction
“The Internet of Things” (or IoT for short) is one of the pillars of “Industry 4.0” or “The Fourth Industrial Revolution”. Other pillars include Big Data and data analytics, augmented reality, cybersecurity, collaborative robots, additive manufacturing, cloud-based computing, artificial intelligence, and 5G networks [
1,
2].
Advancements in the 1970’s and 1980’s in electronics manufacturing technologies such as nanotechnology and Integrated Circuits (ICs) are now reflected in practically every electronic device we use; and even though prices have dropped dramatically since then, devices such as the PC, smartphone and tablet are still perceived as a considerable yet inevitable investment to all middle-class populations throughout the world.
We are, therefore, in need of reducing the time and cost associated with electronics manufacturing, and in a need of expansion in technology accessibility (and its benefits) to occur. Technology must transcend from a privilege (since currently only around 60% of world population have some form of Internet Access [
3]) to a human right; while, at the same time, assuring product quality, traceability and abolition of unacceptable labor conditions or involving employees in dangerous tasks during said processes. Innovations in electronics manufacturing, such as this, are of utmost importance at this time.
The most popular component format for mass produced circuits is, by far, SMT (Surface Mount Technology). Here, small components are located onto solder-paste pads by a Pick and Place machine [
4]. The board is then placed inside a reflow oven and exposed to convective heat that reaches temperatures in the range 180–250 °C. As demand for smaller and more compact devices increases, SMDs grow to be both even more complex and more delicate. The miniaturization process includes the use of heat sensitive materials that could deteriorate on exposure to high temperatures [
5]; thus, temperature control is necessary.
Not all manufacturing companies, however, possess the resources to upgrade their equipment to that of the latest tendencies (in this case, being Industry 4.0 compatible), and those that do will probably discard their past equipment to do so. This contradicts two of the most important pillars of Industry 4.0: Sustainability and reduced consumerism [
6]. Ways to upgrade current equipment are to be sought, which is precisely what is done in this work.
Since this research addresses an Industrial IoT (IIoT) issue, a review of the associated literature is in order.
IIoT is a relatively recent and increasingly more relevant expansion of the IoT concept (defined to be the connection between people and things and between the physical and virtual objects for the exchange of information to perform coordinated tasks [
7]). One of its primary characteristics is the use of a larger number of smaller, simpler devices (called modules) mutually connected through the Internet to gather data, which is later sent to a cloud-based server for analyzing (Data Science and Big Data pillars of Industry 4.0) [
8].
However, relying on a cloud-based server for the allocation, storage, and request management of large volumes of information is known to have a number of potential downsides, and since access to robust cloud services can represent a significant investment for SME manufacturers, ways to reduce data traffic (and thus be able to rely on leaner servers) ought to be found.
The most common network architecture for industrial processes is the so-called “centralized architecture”, where sensors and actuators all communicate with a central processing unit (a PLC, for instance) but not with one another. This would increase data traffic to and from the cloud, as all data must pass through the processing unit first to be uploaded or retrieved. IIoT, on the other hand, favors and leverages a decentralized architecture, where IoT devices can communicate directly with both one another and the cloud server [
9], thus reducing data traffic and the necessary server robustness.
The second strategy used to reduce network traffic is to use lightweight protocols. This topic alone has led to a number of research regarding the best network-layer protocol for IIoT, including Modbus TCP [
10], QUIC [
11], and MQTT [
12].
According to the literature [
13], the MQTT (Message Query Telemetry Transport) Protocol has been the most popular protocol for IoT applications for several years now, as it is lightweight and does not require large bandwidth. This has also made it popular for other IoT areas (besides Industrial), such as smart homes [
14], medical equipment [
15] and even agriculture [
16].
Recorded implementations of IIoT in actual industrial processes are also already found in the literature, including a chemical production use case [
17], Li-Ion battery manufacturing [
18], and electric motor monitoring [
19], but few integrations in the electronics manufacturing industry were found.
Géczy et al. [
20] present a modular approach, by implementing new sensors to their devices through microcontrollers (such as the “Fishino”) ensembled with thermocouples and pressure sensors. However, this work focuses on transcending Serial Communication native to a Reflow Oven (RS-232) to network-based communication, elevating important data to and from an MQTT server.
Furthermore, no methods, proofs-of-concept or any form of research were found regarding the chosen niche: exploring potential, limitations, and strategies useful to upgrade outdated devices as a solution to adopt newer and better technological tendencies without discarding previous equipment.
This work reports the design and performance of a Raspberry-Pi based network interface and controller for a Zhengbang ZB5040HL Reflow oven (as well as the followed strategies to the project network cybersecure) to match the needs of an “Industry 4.0”-compliant PCB manufacturing cell. The interface is capable of operating the reflow oven’s actuators according to instructions allocated in an MQTT server and of uploading valuable monitoring data to said server, such as temperature history, process status, or any other relevant variable to be monitored. Collectively, these efforts result in a successful proof of concept of an interface capable of allowing deprecated devices to be upgraded to Industry 4.0 Standards. with autonomous operation, remote monitoring, and cybersecurity as the main criteria.
3. Experimental Setup
3.1. Experimental Strategy
The main element of this project is a Wenzhou-Zengbang ZB5040HL Reflow oven, although the same conclusions and solutions should work for similar models such as ZB2015HL, ZB2520HL and ZB3530HL. These are all Drawer-type ovens which, as seen in
Figure 2, include a female DB9 port for serial communication.
According to the manufacturer’s website ZB series entry [
22], the DB9 port is used for “PC On-Line operation”, heat profile modification and temperature monitoring. This software is said to be specifically designed for controlling a ZB Series Oven (shown in
Figure 2). However, this is the only information given regarding the specific communication protocol or parameters.
The software does provide a way of “remotely” controlling the oven but typing and clicking is necessary in the GUI. The chosen solution was to implement a standalone controller which would replicate the output signals on the software which, according to the previous findings on
Figure 1, are in the RS-232 Protocol.
With this information at hand, the provided software was installed, and a PC Serial IO monitor (Eltima Serial Monitor) was configured for RS232 Serial Communication.
Knowing that this software outputs messages in RS-232, we can now monitor the PC’s Serial Port and observe its behavior at different stages of the heat cycle. By combining the provided Zhengbang Software (
Figure 3) and the Serial Monitor Software provided by Eltima LLC, the experimental setup shown in
Figure 4 was used to find the RS-232 data packets corresponding to each command.
Said experimental Setup works as follows:
The user uses the PC (H1) to open the Zhengbang Software (S1) and manually executes different commands (like those shown in
Figure 3).
H1 then outputs a logic level serial code through its USB port, to which a USB-DB9 transceiver (H2) is connected.
H3 Executes the command, e.g.: “Turn on the heating element with 50% power”, etc.
Figure 5 highlights in a red box a set of Hex Codes which stood out. IRP_MJ_WRITE Code with data column record 0x [A1 38 02 23 B2], for example, appeared immediately before the IRP_MJ_READ, which is a Serial Temperature Read command on which we can find the temperature 63 °C (encoded as 0x [00 3F]), Highlighted in the yellow square. This reading was confirmed by the provided software’s user interface.
A total of 40 tests were performed, following the methodology in
Figure 6 (and utilizing the aforementioned Experimental Setup). This was done to clearly demonstrate that our interpretation of what each command does was correct. After the tests,
Table 1, which includes the found Hex Codes, could be generated.
It is worth noting that the HexCodes described in
Table 1 show bold bytes and italics bytes. Bytes written in bold are content bytes, whereas italics bytes (always the last two of the message) are generated using the Modbus sum check algorithm CRC16. This is a very curious design choice by Zhengbang, as RS-232 and Modbus have blatantly different message data structures.
This is important because while commands 1–5 can be treated as static data structures, commands 6 and 7 are dynamic, and will vary their CRC16 2-byte segment according to the “heat” or “fan” byte. Said bytes hold a “control action” value, ranging from decimal 0–255, which correspond to either the power of the heating element or the cooling fan respectively. Therefore, it is important to add a CRC16 library to the controller and generate the last two bytes before sending the UART message.
So far, the controlling interface device had to meet the following criteria: Both Wired (ethernet) and wireless network connection, adjustability of network parameters (such as setting a specific IP address for each NIC), a serial port for UART communication (preferable through USB connection) and to count with an available open-source process management daemon (for exception, errors, and reboot management) for end-purpose ergonomics.
Taking all of this into account, a Raspberry Pi 4 was seen as a perfect fit, and incorporated as the controller. A PID-Controller library, the “serialport” library (configuring one of the USB ports to asynchronous mode with a 9600 baud rate) and the “easy-crc” library were downloaded for their use during the final implementation.
3.2. Cybersecurity and the MQTT Server
As mentioned, the importance of cybersecurity has been increasing as an Industry guideline. A subnet arrangement as shown in
Figure 7 was designed to protect the Production Cell (PrC) Local Network from a possible cyberattack.
The main constraint around which the subnet was designed was to prevent any possible “unclean device” (such as PCs which have not been factory reset prior to their involvement with the project) from directly connecting to the network.
By generating a Private WLAN (Wireless Local Area Network) utilizing the Wireless Router, PC⟺Internet and PC⟺Raspberry Pi traffic occurs separately, and through different NICs (Network Interface Cards). The same occurs for Raspberry Pi⟺PrC Subnet (Accessed through the Ethernet Switch) and “PROJECTS” Network⟺Internet. This last connection is additionally secured through the Research Center’s NAT and DNS.
This, in turn, also keeps traffic from “unclean devices” apart from that of the Research Center’s “PROJECTS” Network; since said network includes devices (such as servers, PLCs, etc.) which cannot risk being vulnerable to a cyberattack.
This model is, in an intentional manner, analog to the Local Networks of a factory’s Production Cells and its Main Network respectively; model which SME manufacturers could leverage to improve their cybersecurity.
As for the MQTT server, it was also specially designed for the larger project containing this work: an Automated PCB Production Cell. It follows the architecture shown in
Figure 8.
The Broker itself runs on EMQ (An open-source MQTT Message broker, designed for IoT) and MongoDB (NoSQL Database). Gathered data, such as the temperature record during reflow, process status, and Control Actions would not benefit from the use of a relational database; so, NoSQL (a non-relational database language) was chosen, as it presented a larger potential for scalability.
Since MongoDB already supports the JSON data structure format, this will prove useful during the code implementation, on which JavaScript was chosen as the final scripting language.
4. Results
4.1. Verification of the Found Command Codes
Whenever a device “Links” to the reflow oven (by sending “Link” Code UART 0x02 + CRC16) the Reflow Oven LCD displays a confirmation message (as shown on
Figure 9) indicating successful connection was established.
As with the “Link” command, every command in
Table 1 had to be tested as manual UART Serial Sends (utilizing the “serialport” JavaScript library) to that our conclusion of their functionality was correct.
To attain confirmation that each command is, in fact, responsible for the attributed action, the commands were executed in a reciprocal “do-undo” method, as illustrated in
Figure 10. Said diagram shows a gradual buildup, from the simplest commands (and their cancelling counterparts) to an actual temperature closed-loop control.
First, the system was linked and unlinked (Stage 1). Then, in addition, the convection fans were activated and deactivated in between (Stage 2). Then, a closed loop for temperature increase was added (Stage 3). Once that worked, it was exchanged for a temperature decrease loop (Stage 4) before, finally, combining them both (Stage 5).
4.2. Final Control Logic and Implementation
With the necessary architecture and materials (and having validated the interpretation of each command), the Autonomous Operation Flowchart was generated. It is shown in
Figure 11, and it depicts the control logic used for the main code.
Said logic consists of a closed-loop control system, utilizing a PID Controller to adjust temperature (sensed from built-in thermocouples). A heating element and a fan (found inside the oven) are controlled to increase or decrease temperature respectively, and thus reach a set-point.
With each cycle, the “TEMP” topic (Temperature) is updated in the MQTT Server and, if necessary, the “STATUS” topic (which indicates current process status, such as the current stage within the reflow process) is updated as well. Such interactions are represented by clouds in the diagram.
The control logic was implemented into the Raspberry Pi utilizing the JavaScript language and the NodeJS Framework.
JavaScript is well known for being a suitable language for managing asynchronous tasks, leveraging features such as “callbacks” [
27].
This was necessary to program periodic “interruptions”, such as consistently updating the current temperature reading or the current control action.
However, JavaScript as a language is meant to run code over a web browser. That is why the NodeJS Framework had to be used, which simply allows us to run JavaScript Code directly from the Operating System (OS) or command terminal of, in this case, the Raspberry Pi 4.
4.3. Functional Validation and Results
Finally (and for communication validation purposes), a copper board with stencil-made solder paste pads was subjected to the temperatures shown in
Figure 12 (an array of set-points based on the manufacturer’s recommended reflow profile). The test was controlled remotely across the room.
Although the test resulted in successful solder reflow (which is discussed to greater detail in the next chapter), it certainly represents an area of opportunity for future research; as precise and accurate temperature control falls outside the scope of this research, which is to grant an outdated reflow oven with automation, cybersecurity, and data collection capacities, to comply with Industry 4.0 needs.
This, alongside electrical conductivity (which was tested using a multimeter) are the most important criteria to define successfully soldered pad.
5. Conclusions and Future Work
With these findings, functional remote and autonomous operation of the ZB5040HL was achieved, and successful reflow of solder paste was observed. We therefore consider this “Industry 4.0-compatible” modification (out of a previously outdated device) successful. The fact that the Command HexCodes have been (presumably) designed by Zhengbang for this Oven Series presents both an advantage and a disadvantage: This would make these exact same codes useful for other models of the same series, but also it would imply that a similar process to that described in
Section 3.1 must be followed to obtain the corresponding command codes if the user is trying to implement this strategy over an oven of a different brand or series. The same is true for compatibility with other protocols, as this same strategy and components would also work for RS-422 and RS-485, but the right converter/transceiver would be needed, as these serial communication standards follow the same message structure as RS-232 but with different voltage levels and transfer-wiring types. It would not, however, work as easily with Modbus (another largely popular serial communication protocol) as the message structure between Modbus and the RS family are rather different. Reprogramming the interface for specific Modbus TTL serial outputs and purchasing the right transceiver would also be necessary.
Additionally, these findings may also be utilized to produce interfaces for other devices lacking native to IIoT capacities (such as the laser or mechanical etching machines which also belong to the PCB manufacturing process), and other communication protocols, such as RS-485 or Modbus. In essence, this proof-of-concept provides guidelines for managing different industrial processes to upgrade their current equipment to comply with Industry 4.0’s demand for automation, remote monitoring, and Industrial IoT.
As Industry 4.0 as a movement continues to influence the manufacturing industry; and the adoption of its features involves ever-more necessary upgrades, this work offers an option for SME manufacturers to embrace these innovations in an affordable manner, and thus, stay both relevant and profitable.
For future research, the improvement of temperature control precision and offset compensation are certainly major areas of opportunity.
Figure 12 shows three different temperature profiles. The first one (blue plot) corresponds to the oven’s built-in thermocouple found in the workspace near the heating elements (which reports a higher, yet incorrect, temperature). The orange curve plots the temperature sensed by an additional thermocouple, taped directly onto the copper board (which indicates the actual copper board temperature). This dual-measurement setup was made to find the magnitude in which the workspace and workpiece temperatures differ and determine if this can serve as a niche for future research. Finally, the gray curve plots the recommended manufacturer heat profile.
Although differences between the produced curve and the recommended profile may seem significant, the literature inclines towards considering the so-called “heating factor” (measured in s °C) as the variable holding the most influence over solder joint strength and overall reliability [
28,
29]. For lead-free solder pastes, the ideal heating factor supposedly sits around 500 s °C [
30], whereas when using Sn63/Pb37 both the manufacturer recommended profile and the achieved profile easily reach upwards of 2500 s °C.
If, additionally, temperature could be measured accurately and without altering the thermodynamics of the reflow process (such as with IR sensors [
31]), the whole system could serve to feed a sample space with data from multiple runs, that would allow for the same optimization contribution for different solder-paste types.
This is all to say that a robust scientific analysis to assess solder joint quality based on the heating factor criteria out leveraging on Big Data techniques (applied on an IoT module-fed database) is an excellent candidate for follow-on research. However, being such a relevant topic to the quality of the finished product (and falling outside the scope of this narrowly delimited research and its objectives), temperature and reflow control are not explored further in this article, as they represent a dedicated research effort focused only on optimization.
Whereas this work shows the first stage for Reflow Oven Upgrades, control precision must still climb another step for it to become a popular and reliable industrial-level solution.