Page 1 of 1

Fusion v8 pic32 / RS232 click - Questions

Posted: 19 Aug 2023 23:10
by cheaberlin@outlook.com
Hi,

I've posted this question in a couple forums because I'm not sure where is the most applicable.
My project was to read serial ascii data thru the rs232 click. I am using a fusion v8 pic32 (pic32mx795f512) with the rs232 click in the first mikrobus slot. I assumed the rs232 click example code would be a good place to start however when I display the data received it makes no sense. First I was displaying larger than 1 byte when attempting to display a character at a time, and the data made no sense. I then changed the input array from unsigned char to uint8_t and the read function to pass the address of the first item in the array. The result was I then got single characters (uint8_t) values however they were still not making sense. I then suspected that my input device was sending UTF8 encoded strings instead of plain ascii values, so I wrote a simple program on my laptop to read the serial data and I saw the values I originally expected. So I decided UTF encoding was not the issue. What is the RS232 click or the RS232 library outputting? Or how can I or is it possible to receive plain ascii data in this method.

Re: Fusion v8 pic32 / RS232 click - Questions

Posted: 31 Aug 2023 08:51
by IvanJeremic
Hi,

Lets continue this conversation on the first forum that you opened.
viewtopic.php?f=194&t=80166&p=317342#p317342

Regards,

Ivan.