Try sending an actual byte array with write(ser, UInt8[126 1 1 1 1]) instead.
write(ser, UInt8[126 1 1 1 1])