Console demo with RS232 module?

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
moonckim
Newbie
Posts: 15
Joined: Fri Feb 04, 2011 9:18 pm

Console demo with RS232 module?

Post by moonckim » Wed Mar 02, 2011 7:34 pm

Hi,

I am looking for a way to print out messages from FLEX board on a console on a Windows PC. I found a demo program using console_descriptor_t at RT-Druid C/C++ Project -> pic30 -> FLEX Demo Board -> Console demo.

My question is as follows:
1. Do I need a RS232 module to use this program for such purpose?
2. Currently, I am using a multibus daughter board with a full FLEX board. Can I use one of UART ports of the multibus board for this purpose? Do I still need a RS-232 module?

Thank you in advance,
Moon

moonckim
Newbie
Posts: 15
Joined: Fri Feb 04, 2011 9:18 pm

Re: Console demo with RS232 module?

Post by moonckim » Wed Mar 02, 2011 7:50 pm

I found a similar post on "FLEX" forum.

Moon

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Console demo with RS232 module?

Post by paolo.gai » Thu Mar 03, 2011 12:36 pm

The basic idea is that the UART port is a serial port. The RS232 module just contains a MAX-232 chip to change the voltage to make it compatible with the PC serial port.

Be sure to program the console to the correct serial port you are using...

Ciao,

PJ

moonckim
Newbie
Posts: 15
Joined: Fri Feb 04, 2011 9:18 pm

Re: Console demo with RS232 module?

Post by moonckim » Thu Mar 03, 2011 3:00 pm

Yes. I made it work with both UART1 (#define MY_FIRST_SERIAL 0) and UART2 (#define MY_FIRST_SERIAL 1) slots. I used the RS232 module and a hyperterminal at PC. There was a warning about strlen() during compilation but it worked fine.

Thank you,
Moon

Post Reply