data over serial port

Well, I would recommend that you try and let us know :slight_smile:
What you could try is using string.byte instead of string.sub (as pack “b” is waiting for a number)