Introduction
In this post it is showed how to test the RS-232 on Ardbox HF family versions.
Requirements
20 IOs PLC: Ardbox Family Products
RS-232 Library: Industrial Shields RS-232 Library (Github)
Software
Connecting an Ardbox with other equipment through RS-232.
On the Sketch is showed that you must send a 25 thought RS-232 to complete this test.
RS-232 Test sketch:
#include <RS232.h> //////////////////////////////////////////////////////////////////////////////////////////////////// void setup() { Serial.begin(9600L); Serial.println("rs232-echo-simple started"); RS232.begin(9600UL); } //////////////////////////////////////////////////////////////////////////////////////////////////// void loop() { RS232.write(25); if (RS232.available()) { byte rx = RS232.read(); Serial.println(rx); RS232.write(rx); } }