Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9868 Discussions

Sending UART in Hex format

ARaml
Beginner
1,197 Views

Hi..Im currently using device which requires data to be send from C1000 to the device in HEX format. Some of my codes are:

uint8_t data[]={0x01, 0x04, 0x00, 0x00, 0x00, 0x02, 0x71, 0xCB};

qm_uart_write_buffer(QM_UART_0, data, sizeof(data));

However, i realized that data is sent thru UART is in ASCII instead of HEX. How I want to send it in HEX format?

0 Kudos
2 Replies
idata
Community Manager
130 Views

Hello,

Thank you for reaching out to /community/tech/microcontrollers Intel® Quark™ Microcontrollers forum.

We have received your request and shortly we will be contacting you with additional information.

Regards

 

Intel Customer Support Engineer

 

Under contract to Intel
ARaml
Beginner
130 Views

Hi.. I managed to resolve the issue. The problem is actually not hex > ASCII conversion. I actually need to set the parity bit to Even (as required by the hardware), QM_UART_LC_8E1. thanks.

Reply