I know this topic has come up in other old posts but it has never been fully answered (or at least that I've found). I've been investigating comms using TCP communications to an application running on a PC. This is something I've done on other processors for live I/O control of robotic systems with great success. I am hoping the mbed can replace my previous processor as it has more useful features.
Sending a packet to the mbed and then having it transmit a reply I am getting a poor 4 packets/second out of it. On my other processor (which is actually lower specs) I get >250/sec so I know the comms+pc app are up to the task.
Investigating further I found that if I remove the reply from the mbed back to the PC I get around 3000 packets/sec transmitted to the mbed and these get received and processed ok by it. As soon as I reply back to the PC this drops back to 4. I came across the TCP_TMR_INTERVAL constant in the tcp_impl.h file and thought I was onto something as this is set to 250ms and wondered if it was something to do with the send buffer only getting checked 4 times a second, but changing this setting made no effect to throughput!
If anyone has any thoughts then please respond.
I've obviously also read a bit about the raw lwip implementations that some people are using but have yet to see a working example using TCP, if anyone can point me in the right direction for this I would appreciate it!!
Paul
I know this topic has come up in other old posts but it has never been fully answered (or at least that I've found). I've been investigating comms using TCP communications to an application running on a PC. This is something I've done on other processors for live I/O control of robotic systems with great success. I am hoping the mbed can replace my previous processor as it has more useful features.
Sending a packet to the mbed and then having it transmit a reply I am getting a poor 4 packets/second out of it. On my other processor (which is actually lower specs) I get >250/sec so I know the comms+pc app are up to the task.
Investigating further I found that if I remove the reply from the mbed back to the PC I get around 3000 packets/sec transmitted to the mbed and these get received and processed ok by it. As soon as I reply back to the PC this drops back to 4. I came across the TCP_TMR_INTERVAL constant in the tcp_impl.h file and thought I was onto something as this is set to 250ms and wondered if it was something to do with the send buffer only getting checked 4 times a second, but changing this setting made no effect to throughput!
If anyone has any thoughts then please respond.
I've obviously also read a bit about the raw lwip implementations that some people are using but have yet to see a working example using TCP, if anyone can point me in the right direction for this I would appreciate it!!
Paul