Ignition Serial module


We need to migrate the HMI from EasyBuilderPro to Ignition. There is one device communicate to the HMI directly via RS232.

Based on the picture, it send the command using hexadecimal.
payload: 0xA5,0xF1,0x00,0x00,0x3A,0xA5.

First question:
I have tried to different method on tag change script, look like Igntiion serial function can't recognize hexadecimal.
Anyone have experience with serial comm using hexadecimal payload.

Second question:
Do we need to configurSerialeport,openSerialport,closeSerialport if we use write,writebyte or readbyte function?