Hi Karl,
Thanks for your update and sorry for late reply. On my side, I've test out the decive as below:-
1) I tried to ping the decives and it can be done and the reply time was ~10ms by using the cross cable.
2) I tried to send the packet from PC to the devices and the data was out from the COMM port, and it works even I tried to send every packet by delay of 50ms. However I don't know I right or not. Here are the code that I've wrote for the testing:-
for(i=0;i<par1;i++)
{
TCP_In_Msg[i]=RECEIVE_NETWORK_B();
while(!SCI0SR1_TDRE);
AS1_SendChar(TCP_In_Msg[i]);
}
if(TCP_In_Msg[8]=='9')
{
Bit1_NegVal();
}
For me I'm just received the packet from PC Server and then transfer out from the RS232. Am I follow you.
3) However I tried to resend back the packet, as long as reseived the data packet from PC Server, to PC server, but after a while the MCU was look hang on there and can't receiving any more packet. I've tried to increase the delay time between data packet sending from PC server to 1s even more to 2s, the situation was same that the MCU will stop receving packet and as well sending packet back to PC server.
4) Currently I want to test where I received the data from RS232 and send the data back to PC server and would like to see what will happens. By the way can you show me how to receive the RS232 in Interrupt Mode to received the data and send the data to PC server?
5) The final testing that I want to tried is the MCU will just sending the data packet to PC server, preset the data need to be send like the example code from NE64_Vend_Demo project file, and find out will the sending packet will occur any problem?
I've attached my project file to have a check if needed. Thanks.
Regards,
KahJoo
InternetTesting1.zip
Message Edited by t.dowe on 2009-10-20 11:04 PM