RS485 - twrk40x256

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

RS485 - twrk40x256

跳至解决方案
1,039 次查看
mpc8377e
Contributor I

Hi,

 

I am trying to run the example program mqx\examples\rs485\rs485.c. As the prorgram is using ittyd port so i have set #define BSPCFG_ENABLE_ITTYD      1 in user_config.h bsp file. I am unsuccessful in exeucting the program. I have opened serial port of my pc to recieve and send data but no transactions are happening. I want to know what are all the settings need to be done to execute rs485 program. 

 

I have TWR-SER board and set jumpers J17, J18 and J19 in pos 2-3 and i've installed three jumpers on the J13 header on pos 1-2 , 3-4 and 5-6.

 

Regards.

Raghu

0 项奖励
回复
1 解答
804 次查看
c0170
Senior Contributor III

Hi mpc8377e,

 

yes it is necessary as it is for RS232 which you tested on your computer. 

 

Regards,

MartinK

在原帖中查看解决方案

0 项奖励
回复
3 回复数
804 次查看
c0170
Senior Contributor III

Hi mpc8377e,

 

did you set also default channel in board header, twrk40x256.h ? Default value is ttya.

 

Regards,

MartinK

0 项奖励
回复
804 次查看
mpc8377e
Contributor I

Hi,

 

I was trying to communicate with windows PC using RS485 example program. Now i have shifted jumper to have RS232 as medium of communication and the program works(messages can be sent and received from windows host).

 

Is it necessary to have RS485 transreceivers at PC side also to get communication working using RS485?

 

Regards,

Raghu

0 项奖励
回复
805 次查看
c0170
Senior Contributor III

Hi mpc8377e,

 

yes it is necessary as it is for RS232 which you tested on your computer. 

 

Regards,

MartinK

0 项奖励
回复