Hi everyone! i've got a problem with received data from MPU-6050 trough atmel uc3.
The format of the received data looks like this:
$I/uMPL-mai
$n:InvenSen
$se MPL v4.
$0.0 Apr 4
$ 2012 11:0
$4:26
instead of:
$I/uMPL-main: InvenSense MPL v4.0.0 Apr 4 2012 11:04:26
Also i did the following print:
MPL_LOGI("INVENSENSE 123 INVENSENSE 456 INVENSENSE 789 INVENSENSE ABCn");
and i've obtained:
$I/uMPL-mai
$n:INVENSEN
$SE 123 INV
$ENSENSE 45
$6 INVENSEN
$SE 789 INV
$ENSENSE AB
$C
instead of:
INVENSENSE 123 INVENSENSE 456 INVENSENSE 789 INVENSENSE ABC
how to works MPL_LOGI?
Thanks in advance...
- Log in to post comments
phpbb Topic ID
14259
Re: Re: MPU-6050 with UC3: Problem with received data.
There is a serial message protocol used for data transmission that the UC3 device is following. Your message is being interrupted by plotting the header / footer characters within the message, instead of taking out the payload and reconstructing it. A typical message length is configurable length, with a header <0x36 0x02> and footer <0x10 0x13>.