Hello,
I have some questions about the Transmitrate over TCP/IP with the AT91SAM7x256 and RTX RL-ARM 412.
I modifyed the Telnet demo and added a Task for an TCP Blaster Test. It's a communication from an Win XP PC to the Developmentkit AT91SAM7X-DK.
The SAM7X sends the Data and the PC is receiving. It shows me a datarate of ~320 bytes/sec
I think thats a little bit slow. Maybe someone can tell me something about good settings for the TCP/IP Task/Handling ... Heap, Tasksize, Taskdelay etc.
This is what I have added in the telnet demo:
opened a socket:
#define SENDLEN 32 /* Number of bytes to send */ socket_tcp = tcp_get_socket (TCP_TYPE_CLIENT, 0, 10, tcp_callback);
create a task:
os_tsk_create (tcp_BlasterTask, 25);
task code:
__task void tcp_BlasterTask (void) { U8 *sendbuf; U8 ucI = 0; U8 tcpState = 0; tcpState = tcpState; while (1) { /* TCP */ if (socket_tcp != 0) { /* Start Connection */ switch (tcpState = tcp_get_state(socket_tcp)) { case TCP_STATE_FREE: case TCP_STATE_CLOSED: tcp_connect (socket_tcp, Rem_IP, PORT_NUM, 0); break; case TCP_STATE_CONNECT: if (tcp_check_send (socket_tcp) == __TRUE) { sendbuf = tcp_get_buf(SENDLEN); for ( ucI = 0; ucI < SENDLEN; ucI++) { sendbuf[ucI] = ucI; } tcp_send (socket_tcp, sendbuf, SENDLEN); } break; } } os_dly_wait(5); } }
Thx for your Help!