BrickPiRx Error : -2

Hi,

I have 2 NXT motors, plugged into MA and MB.

When I run : sudo python LEGO-Motor_Test.py

I get the following output

Running Forward
BrickPiRx Error : -2
BrickPiRx Error : -2
BrickPiRx Error : -2
Retry Failed
BrickPiRx Error : -2
BrickPiRx Error : -2
BrickPiRx Error : -2
Retry Failed
BrickPiRx Error : -2
BrickPiRx Error : -2
BrickPiRx Error : -2
Retry Failed
BrickPiRx Error : -2
BrickPiRx Error : -2
BrickPiRx Error : -2
Retry Failed

What does the error code of -2 mean?

I have the pi powered by a USB cable, and the brickpi powered using the 8XAA power pack.

It is a timeout for the serial communication from BrickPi to RPi. In other words, RPi expects data from BrickPi but does not get any in time.
What OS image are you using for the RPi? BrickPi requires a modified Debian Wheezy image to work properly. You can download it from Dexter Industries website.

Jimmy, echoing Frans’s request: what image are you using? -2 indicates that for some reason, the Raspberry Pi isn’t getting a response from the BrickPi. This can be a few things, but let’s start by asking about the image.