Source code of Nanrui's IEC104 protocol implementation