var bytecount = hexline.substring(1, 3);
                var bytecountDec = parseInt(bytecount, 16);
                var address = hexline.substring(3, 7);
                var addressDec = parseInt(address, 16);
                var type = hexline.substring(7, 9);
                var typeDec = parseInt(type, 16);
                var data = hexline.substring(9, 9 + 2 * bytecountDec);
                var checksum = hexline.substring(9 + 2 * bytecountDec, 9 + 2 * bytecountDec + 2);
                var c