Hello,
/*
I started with mbed a few weeks ago, so there is still a lot to learn.
Sadly, time is of the essence (thesis...), and there is not much tp spare for try and error.
For an experiment setup, I want to get sensor data (voltage on 1 Pin AnalogIn) to a server via Ethernet.
What I hope to accomplish:
About 100-1000 sensor values transmitted per second, with latency as low as possible (under 5ms).
The order the values is important, on the server side.
What general approach would you recommend?
My thoughts:
TCPSocket on mbed and on server,
mbed sends one packet per sensor value
- the amount of packets could be too hight, right?
What about UDP?
Or, no packets at all, and some kind of Stream? Is that easy to implement, in that case?
(Programming language on server side is Objective-C with Cocoa)
Local Ethernet is Gigabit, fast, reliable. Ping to UDPSocket on mbed works with 0.1 ms response time.
Hello,
/* I started with mbed a few weeks ago, so there is still a lot to learn. Sadly, time is of the essence (thesis...), and there is not much tp spare for try and error.
For an experiment setup, I want to get sensor data (voltage on 1 Pin AnalogIn) to a server via Ethernet.
What I hope to accomplish: About 100-1000 sensor values transmitted per second, with latency as low as possible (under 5ms). The order the values is important, on the server side.
What general approach would you recommend?
My thoughts: TCPSocket on mbed and on server, mbed sends one packet per sensor value - the amount of packets could be too hight, right?
What about UDP? Or, no packets at all, and some kind of Stream? Is that easy to implement, in that case?
(Programming language on server side is Objective-C with Cocoa) Local Ethernet is Gigabit, fast, reliable. Ping to UDPSocket on mbed works with 0.1 ms response time.