RS485 - twrk40x256

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,036件の閲覧回数
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 解決策
801件の閲覧回数
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 返答(返信)
801件の閲覧回数
c0170
Senior Contributor III

Hi mpc8377e,

 

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

 

Regards,

MartinK

0 件の賞賛
返信
801件の閲覧回数
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 件の賞賛
返信
802件の閲覧回数
c0170
Senior Contributor III

Hi mpc8377e,

 

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

 

Regards,

MartinK

0 件の賞賛
返信