UART + Dynamic HTML

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UART + Dynamic HTML

1,971件の閲覧回数
Jose_86
Contributor I
Hello,
 
I would like to show in a dynamic web page (using coldfire lite http server) a date inserted by UART port of MC5233DEMO.
 
The code used:
 
void collect_sensor_data( void )
{
.
.
.
 html_vars[3]  = getch();
.
.
.
}
 
It doesn't work. The funcion getch() always returns -1. ¿Do u have any idea? Thanks!
 
 
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

974件の閲覧回数
Jesse
Contributor I
We replaced the call to getch with the UART port as follows:
 
Code:
html_vars[14]  = MCF_UART1_URB;

 
This appears to be working.
0 件の賞賛
返信

974件の閲覧回数
Jose_86
Contributor I
I have already solved my problem. Thx.
0 件の賞賛
返信

974件の閲覧回数
Jesse
Contributor I
I'm having the same problem.  Could you post what your solution was so it may help others?
 
Thank you,
-Jesse
0 件の賞賛
返信