Hi there,
I was having trouble receiving SPI-messages. Checked the communication with a logic sniffer (everything as expected on the SPI-side) and I think I found the problem in the Arduino-code, function "spi_sendReceive".
After changing
...
Serial.print(SPI.transfer(command[i+6])); // this sends ASCII-characters
...
to
...
Serial.write(SPI.transfer(command[i+6])); // this sends raw hex-values
...
the correct data was sent to the PC. Am I messing something up here or was there really a bug in the code? Couldn't find any anything on the web about similar problems.
I'd be glad if someone could comment.
cheers
stefan