Sending hex data over serial port

hi everybody
I’m trying to send hex data over Uart using mc60 module.
I want to send Modbus command below:
u8 request[] = {0x01, 0x03, 0x00, 0x66, 0x00, 0x03, 0xE5, 0xD4};
and I used Ql_UART_Write(SERIAL_PORT,request,8);
but the data is sent as ascii which has no response from Modbus slave.
I’d be tankful if there’s a Modbus library or a solution to send hexadecimal data over Uart in opencpu.

1 Like

Hi
What is your software version? Can you take a look at the implementation process of your code?