1

I am pretty new to the c++ and raspberry pi.

I am trying to run a real time sensor motor control with the help of Raspberry pi, using cpp. I am sniffing the sensor data through Ethernet and sending control signal to motor through usb. (Using lpcap libraries).

I just wanted to run this program on my RPi. I have installed "Raspbian Wheezy minimal distribution" for this purpose. My sensor processing speed is better, but still having latency in signal sniffing and execution. On ubuntu workstation I found that the total process is using only 13 mb OF MEMORY. I don't understand why still my signal processing speed is low on RPi, compared to that of workstation!! Is it possible to increase the processing speed, in some other manner?

Piotr Kula
17.3k6 gold badges67 silver badges105 bronze badges
asked Mar 25, 2014 at 14:30
3
  • 1
    Try using RiscOS for real time processing instead of Event Driven Operating system like Debian. Commented Mar 25, 2014 at 14:46
  • The NIC on the Pi is connected via USB. That might cause some additional latency. Have you tried running top on the Pi, to see memory/cpu usage? Commented Mar 25, 2014 at 17:34
  • Why do you use ethernet also? I2C and UART works much better since its buid into the hardware. Commented Mar 26, 2014 at 9:14

1 Answer 1

1

you can overclock the pi to increase it's processing speed by running

sudo raspi-config

and selecting the overclock option, if this helps.

I would also add that the higher you overclock the processor, the more unstable it may become. try incrementing overclock speeds slowly, and see what impact it has on your process.

answered Mar 25, 2014 at 14:33

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.