mbed .NET RPC Library - slow speed ?

12 Nov 2010

I used the example given here : http://mbed.org/cookbook/DotNET und could get it to run via serial COM.

Then I removed the delay functions (Thread.Sleep(250);) expecting a much qicker run - but I almost see no difference. With my reduced code now (the rest is same as in mbedRPC_HelloWorld_DotNET) :

 

for (int i = 0; i < n; i++)
{led1.write(1); // on
led1.write(0); // off
}

Then I get a blink frequency of app. 2Hz. Why it is so slow ?

12 Nov 2010

Hi Sven,

Assuming you are using RPC over serial, perhaps you have the baud set very low e.g. 9600? That would certainly be a limiting factor, as simply sending messages back and forth would take ages? If so, try ramping up the baudrate (on both ends) to eg 115200 and see if you get better results.

Simon

Hi Simon  and Sven H.

with 9600 bps it's really very slow. Hopefully you will get a better result with higher baudrates. I never testet it - but it should work.

Feedback is welcome. It's an early BETA and HTTP is still pending.

Cheers!

Stanislaus - the author of .NET RPC