Forum >Logged data is garbled...or is it encoded?
Logged data is garbled...or is it encoded?

[size=8pt][color=blue]<<This topic is explicitly related to using the Telematics Kit3 from arduinodev.com but may apply to others using the same hardware.>>[/color][/size]
Ok...so with help, I am now logging something to disk. ([url=http://www.dfrobot.com/forum/index.php?topic=904.msg4237;topicseen#new]http://www.dfrobot.com/forum/index.php?topic=904.msg4237;topicseen#new[/url])
The problem is, that something is meaningless garbage.
[code]SU € q 43 ÀDj3
T p3 ðÈ^ù¢[email protected] ï €gD„3 ð<^ù¢[email protected]„3 €gD„3
ðXû™B㯧„3 ó È $ïF.4 ð§hù¢[email protected] à¨D.4
ðôû™B⯧Â.4 ó e $ïFô4 ðgrù¢[email protected]ô4 u €~Dô4
ð.û™B⯧Âô4 ó ¿ $ïF¾5 ð"|ù¢[email protected]¾5 õ @uD¾5
ðdû™B㯧¾5 ó ô $ïFn6 ø A PC ïÄ ŒÆn6 ù à qC ¤6 ðÁ†ù¢[email protected]¤6 ì @uD¤6
ð~ø™B㯧¤6 ó P ˜îFJ7 ø WD À!Å à€ÆJ7 ù €¢Ã FC ,Âr7 ð ù¢[email protected] X à¶Dr7
ð©ø™B㯧Âr7 ó ‡ ˜îF8 ð`šù¢[email protected]8 [ ŸD8
[/code]
Has anyone else seen this?
My next step is to add some debugging to the code and start writing it to UART4 (Serial3).
Sb.
Ok...so with help, I am now logging something to disk. ([url=http://www.dfrobot.com/forum/index.php?topic=904.msg4237;topicseen#new]http://www.dfrobot.com/forum/index.php?topic=904.msg4237;topicseen#new[/url])
The problem is, that something is meaningless garbage.
[code]SU € q 43 ÀDj3
T p3 ðÈ^ù¢[email protected] ï €gD„3 ð<^ù¢[email protected]„3 €gD„3
ðXû™B㯧„3 ó È $ïF.4 ð§hù¢[email protected] à¨D.4
ðôû™B⯧Â.4 ó e $ïFô4 ðgrù¢[email protected]ô4 u €~Dô4
ð.û™B⯧Âô4 ó ¿ $ïF¾5 ð"|ù¢[email protected]¾5 õ @uD¾5
ðdû™B㯧¾5 ó ô $ïFn6 ø A PC ïÄ ŒÆn6 ù à qC ¤6 ðÁ†ù¢[email protected]¤6 ì @uD¤6
ð~ø™B㯧¤6 ó P ˜îFJ7 ø WD À!Å à€ÆJ7 ù €¢Ã FC ,Âr7 ð ù¢[email protected] X à¶Dr7
ð©ø™B㯧Âr7 ó ‡ ˜îF8 ð`šù¢[email protected]8 [ ŸD8
[/code]
Has anyone else seen this?
My next step is to add some debugging to the code and start writing it to UART4 (Serial3).
Sb.
2013-10-02 15:39:18 I've gone from garbage to nothing with the newest libraries:( Although there is some concern that the OBD library is not right yet.
I was so hopeful as tomorrow I will be driving all day in the mountains and wanted to log it.
I'm going to wait before I go back to hacking the code. I had it modified so it would continue without the OBD connection and in fact you could ignore it and just log GPS. Maybe I can get that working again.
Sb.
sbirdranch
I was so hopeful as tomorrow I will be driving all day in the mountains and wanted to log it.
I'm going to wait before I go back to hacking the code. I had it modified so it would continue without the OBD connection and in fact you could ignore it and just log GPS. Maybe I can get that working again.
Sb.

2013-09-27 04:53:10 Jose, Thanks for the input. The SD card is being driven off the SPI connection and is piggy backed on the LCD display. Baud settings do not apply to SPI as far as I am aware. The display works, so ground is not an issue.
Matt,
I came to this project when I started looking at OBDII connectors to augment a gps logging tool I had created. I used just a gps to log data every 60 seconds while traveling across the US for 3 weeks. I was able to create some interesting graphics, kmls, and otherwise replay the entire trip. All I really wanted to do was add the throttle position sensor and some onboard logging so I didn't have to run my netbook. This kit#3 just sort of happened to have what I wanted. Turns out the software is not as robust as I thought. But that is what open source is for. I am rather bummed though. I am leaving for this next trip tomorrow and don't have time to beat it into submission. If I had more time, I'd ditch the code and write just what I want, coming back to the bigger picture later. But I don't. At this point I'm thinking about stripping out all the logging code, and adding a simple data logger (from Sparkfun) to UART4, but then I remember that the connection is flaky and I don't have time to address that either.
My coworker is interested in looking into our problems, but that will come over time. He knows the hardware/chipset side very well, and expects that we can do a lot to make this more robust with better code.
sbirdranch
Matt,
I came to this project when I started looking at OBDII connectors to augment a gps logging tool I had created. I used just a gps to log data every 60 seconds while traveling across the US for 3 weeks. I was able to create some interesting graphics, kmls, and otherwise replay the entire trip. All I really wanted to do was add the throttle position sensor and some onboard logging so I didn't have to run my netbook. This kit#3 just sort of happened to have what I wanted. Turns out the software is not as robust as I thought. But that is what open source is for. I am rather bummed though. I am leaving for this next trip tomorrow and don't have time to beat it into submission. If I had more time, I'd ditch the code and write just what I want, coming back to the bigger picture later. But I don't. At this point I'm thinking about stripping out all the logging code, and adding a simple data logger (from Sparkfun) to UART4, but then I remember that the connection is flaky and I don't have time to address that either.
My coworker is interested in looking into our problems, but that will come over time. He knows the hardware/chipset side very well, and expects that we can do a lot to make this more robust with better code.

2013-09-26 18:09:52 sbirdranch,
Looks like baudrate issue. double check you are using the right baudrate on the specifications and in your code. Then check the serial GND is also connected.
Cheers^^
Jose
Looks like baudrate issue. double check you are using the right baudrate on the specifications and in your code. Then check the serial GND is also connected.
Cheers^^

2013-09-26 18:08:33 Here is one of my log files, I have not modified the megalogger.ino at all yet except for the SD pin, I have no requirement to use the GPS, so I want to remove all of the GPS code. My intentions are to gain access to more PID's and display more diagnostic info and log the results. I will probably leave the accelerometer code just to see what it does. What are your intentions for the project, apart from getting it to run stable?
I have no idea what these results are meant to display. The third column looks like the rpm values with 0 and 12 thrown in the mix.
[code]44376,10C,0
69,10C,0
79,111,12
51,104,0
87,10C,0
87,10D,0
71,111,12
59,10C,0
84,10D,0
48,111,12
60,104,0
87,10C,0
87,10D,0
48,111,12
59,10C,0
84,10D,0
49,111,12
59,104,0
53,10C,0
87,10D,0
48,111,12
60,10C,0
84,10D,0
59,111,12
60,104,0
53,10C,0
87,10D,0
60,111,12
92,10C,0
332,10D,0
48,104,0
57,10C,54
89,10D,0
57,111,12
59,10C,125
90,10D,0
54,111,12
60,104,9
87,10C,910
91,10D,0
56,111,12
59,10C,1293
90,10D,0
53,111,12
60,104,9
53,10C,1352
96,10D,0
52,111,12
58,10C,1290
90,10D,0
53,111,12
60,104,7
54,10C,1173
92,10D,0
65,111,12
93,10C,1043
90,10D,0
53,111,12
58,104,6
56,10C,976
90,10D,0
55,111,12
60,10C,929
88,10D,0
54,111,12
59,104,6
55,10C,882
92,10D,0
54,111,12
93,10C,862
88,10D,0
55,111,12
60,104,6
56,10C,847
88,10D,0
56,111,12
59,10C,835
89,10D,0
53,111,12
50,104,6
54,10C,832
90,10D,0
56,111,12
91,10C,823
90,10D,0
55,111,12
48,104,6
54,10C,825
89,10D,0
58,111,12
57,10C,822
89,10D,0
54,111,12
61,104,6
53,10C,809
92,10D,0
54,111,12
61,10C,810
86,10D,0
57,111,12
60,104,5
86,10C,793
92,10D,0
54,111,12
59,10C,791
121,10D,0
57,111,12
60,104,5
53,10C,776
89,10D,0
56,111,12
48,105,91
54,10C,760
90,10D,0
57,111,12
58,104,5
88,10C,753
91,10D,0
55,111,12
60,10C,763
88,10D,0
56,111,12
59,104,5
54,10C,752
89,10D,0
55,111,12
49,10C,761
88,10D,0
57,111,12
59,104,5
86,10C,764
91,10D,0
56,111,12
60,10C,757
86,10D,0
56,111,12
47,104,5
55,10C,754
90,10D,0
56,111,12
60,10C,751
88,10D,0
55,111,12
47,104,5
88,10C,753
90,10D,0
57,111,12
58,10C,748
89,10D,0
54,111,12
49,104,5
53,10C,751
83,10D,0
53,111,12
58,10C,753
88,10D,0
56,111,12
59,104,5
55,10C,742
90,10D,0
54,111,12
82,10C,753
90,10D,0
55,111,12
59,104,5
53,10C,760
94,10D,0
53,111,12
60,10C,743
86,10D,0
56,111,12
59,104,5
55,10C,751
91,10D,0
55,111,12
82,10C,749
88,10D,0
66,111,12
59,104,5
54,10C,742
91,10D,0
54,111,12
49,10C,737
88,10D,0
55,111,12
49,104,5
54,10C,749
89,10D,0
57,111,12
93,10C,748
88,10D,0
55,111,12
71,104,5
54,10C,737
90,10D,0
54,111,12
60,10C,727
90,10D,0
54,111,12
59,104,5
54,10C,739
91,10D,0
54,111,12
62,10C,741
88,10D,0
53,111,12
60,104,5
87,10C,742
91,10D,0
89,111,12
60,10C,748
88,10D,0
55,111,12
61,104,5
52,10C,749
90,10D,0
55,111,12
61,10C,739
87,10D,0
56,111,12
59,104,5
90,10C,741
88,10D,0
56,111,12
61,10F,50
56,10C,745
86,10D,0
56,111,12
59,104,5
54,10C,745
92,10D,0
53,111,12
60,10C,744
89,10D,0
54,111,12
59,104,5
89,10C,744
90,10D,0
55,111,12
51,10C,733
86,10D,0
55,111,12
60,104,5
53,10C,726
90,10D,0
56,111,12
61,10C,728
86,10D,0
55,111,12
61,104,5
90,10C,736
89,10D,0
53,111,12
59,10C,727
90,10D,0
54,111,12
48,104,5
54,10C,731
90,10D,0
56,111,12
59,10C,740
88,10D,0
56,111,12
61,104,5
86,10C,736
91,10D,0
54,111,12
62,10C,733
88,10D,0
53,111,12
61,104,5
53,10C,731
91,10D,0
54,111,12
60,10C,731
87,10D,0
57,111,12
47,104,5
54,10C,731
91,10D,0
56,111,12
94,10C,725
86,10D,0
55,111,12
61,104,5
53,10C,725
90,10D,0
56,111,12
61,10C,741
88,10D,0
53,111,12
60,104,5
54,10C,722
91,10D,0
54,111,12
83,10C,731
88,10D,0
55,111,12
63,104,5
51,10C,734
90,10D,0
54,111,12
61,10C,722
88,10D,0
54,111,12
49,104,5
55,10C,732
90,10D,0
55,111,12
60,10C,745
89,10D,0
53,111,12
60,104,5
122,10C,735
91,10D,0
53,111,12
61,10C,729
88,10D,0
54,111,12
60,104,5
55,10C,721
91,10D,0
53,111,12
60,10C,725
96,10D,0
47,111,12
60,104,5
88,10C,720
92,10D,0
53,111,12
59,10C,736
88,10D,0
56,111,12
49,104,5
53,10C,733
91,10D,0
54,111,12
60,10C,741
88,10D,0
66,111,12
61,104,5
89,10C,721
90,10D,0
55,111,12
59,10C,745
87,10D,0
55,111,12
48,104,5
54,10C,744
92,10D,0
54,111,12
59,10C,732
88,10D,0
61,111,12
56,104,5
86,10C,720
91,10D,0
54,111,12
50,10C,735
88,10D,0
54,111,12
49,104,5
53,10C,732
91,10D,0
56,111,12
60,10C,739
88,10D,0
53,111,12
61,104,5
53,10C,725
93,10D,0
53,111,12
95,10C,721
88,10D,0
53,111,12
59,104,5
55,10C,735
91,10D,0
54,111,12
60,10C,732
90,10D,0
54,111,12
58,104,5
66,10C,727
90,10D,0
56,111,12
83,10C,728
88,10D,0
54,111,12
59,104,5
54,10C,732
91,10D,0
55,111,12
49,10C,733
88,10D,0
54,111,12
49,104,5
53,10C,733
92,10D,0
55,111,12
81,10C,724
88,10D,0
56,111,12
61,104,5
53,10C,721
91,10D,0
53,111,12
60,10C,717
89,10D,0
54,111,12
48,104,5
54,10C,728
92,10D,0
54,111,12
59,10C,729
88,10D,0
56,111,12
[/code]
mattt
I have no idea what these results are meant to display. The third column looks like the rpm values with 0 and 12 thrown in the mix.
[code]44376,10C,0
69,10C,0
79,111,12
51,104,0
87,10C,0
87,10D,0
71,111,12
59,10C,0
84,10D,0
48,111,12
60,104,0
87,10C,0
87,10D,0
48,111,12
59,10C,0
84,10D,0
49,111,12
59,104,0
53,10C,0
87,10D,0
48,111,12
60,10C,0
84,10D,0
59,111,12
60,104,0
53,10C,0
87,10D,0
60,111,12
92,10C,0
332,10D,0
48,104,0
57,10C,54
89,10D,0
57,111,12
59,10C,125
90,10D,0
54,111,12
60,104,9
87,10C,910
91,10D,0
56,111,12
59,10C,1293
90,10D,0
53,111,12
60,104,9
53,10C,1352
96,10D,0
52,111,12
58,10C,1290
90,10D,0
53,111,12
60,104,7
54,10C,1173
92,10D,0
65,111,12
93,10C,1043
90,10D,0
53,111,12
58,104,6
56,10C,976
90,10D,0
55,111,12
60,10C,929
88,10D,0
54,111,12
59,104,6
55,10C,882
92,10D,0
54,111,12
93,10C,862
88,10D,0
55,111,12
60,104,6
56,10C,847
88,10D,0
56,111,12
59,10C,835
89,10D,0
53,111,12
50,104,6
54,10C,832
90,10D,0
56,111,12
91,10C,823
90,10D,0
55,111,12
48,104,6
54,10C,825
89,10D,0
58,111,12
57,10C,822
89,10D,0
54,111,12
61,104,6
53,10C,809
92,10D,0
54,111,12
61,10C,810
86,10D,0
57,111,12
60,104,5
86,10C,793
92,10D,0
54,111,12
59,10C,791
121,10D,0
57,111,12
60,104,5
53,10C,776
89,10D,0
56,111,12
48,105,91
54,10C,760
90,10D,0
57,111,12
58,104,5
88,10C,753
91,10D,0
55,111,12
60,10C,763
88,10D,0
56,111,12
59,104,5
54,10C,752
89,10D,0
55,111,12
49,10C,761
88,10D,0
57,111,12
59,104,5
86,10C,764
91,10D,0
56,111,12
60,10C,757
86,10D,0
56,111,12
47,104,5
55,10C,754
90,10D,0
56,111,12
60,10C,751
88,10D,0
55,111,12
47,104,5
88,10C,753
90,10D,0
57,111,12
58,10C,748
89,10D,0
54,111,12
49,104,5
53,10C,751
83,10D,0
53,111,12
58,10C,753
88,10D,0
56,111,12
59,104,5
55,10C,742
90,10D,0
54,111,12
82,10C,753
90,10D,0
55,111,12
59,104,5
53,10C,760
94,10D,0
53,111,12
60,10C,743
86,10D,0
56,111,12
59,104,5
55,10C,751
91,10D,0
55,111,12
82,10C,749
88,10D,0
66,111,12
59,104,5
54,10C,742
91,10D,0
54,111,12
49,10C,737
88,10D,0
55,111,12
49,104,5
54,10C,749
89,10D,0
57,111,12
93,10C,748
88,10D,0
55,111,12
71,104,5
54,10C,737
90,10D,0
54,111,12
60,10C,727
90,10D,0
54,111,12
59,104,5
54,10C,739
91,10D,0
54,111,12
62,10C,741
88,10D,0
53,111,12
60,104,5
87,10C,742
91,10D,0
89,111,12
60,10C,748
88,10D,0
55,111,12
61,104,5
52,10C,749
90,10D,0
55,111,12
61,10C,739
87,10D,0
56,111,12
59,104,5
90,10C,741
88,10D,0
56,111,12
61,10F,50
56,10C,745
86,10D,0
56,111,12
59,104,5
54,10C,745
92,10D,0
53,111,12
60,10C,744
89,10D,0
54,111,12
59,104,5
89,10C,744
90,10D,0
55,111,12
51,10C,733
86,10D,0
55,111,12
60,104,5
53,10C,726
90,10D,0
56,111,12
61,10C,728
86,10D,0
55,111,12
61,104,5
90,10C,736
89,10D,0
53,111,12
59,10C,727
90,10D,0
54,111,12
48,104,5
54,10C,731
90,10D,0
56,111,12
59,10C,740
88,10D,0
56,111,12
61,104,5
86,10C,736
91,10D,0
54,111,12
62,10C,733
88,10D,0
53,111,12
61,104,5
53,10C,731
91,10D,0
54,111,12
60,10C,731
87,10D,0
57,111,12
47,104,5
54,10C,731
91,10D,0
56,111,12
94,10C,725
86,10D,0
55,111,12
61,104,5
53,10C,725
90,10D,0
56,111,12
61,10C,741
88,10D,0
53,111,12
60,104,5
54,10C,722
91,10D,0
54,111,12
83,10C,731
88,10D,0
55,111,12
63,104,5
51,10C,734
90,10D,0
54,111,12
61,10C,722
88,10D,0
54,111,12
49,104,5
55,10C,732
90,10D,0
55,111,12
60,10C,745
89,10D,0
53,111,12
60,104,5
122,10C,735
91,10D,0
53,111,12
61,10C,729
88,10D,0
54,111,12
60,104,5
55,10C,721
91,10D,0
53,111,12
60,10C,725
96,10D,0
47,111,12
60,104,5
88,10C,720
92,10D,0
53,111,12
59,10C,736
88,10D,0
56,111,12
49,104,5
53,10C,733
91,10D,0
54,111,12
60,10C,741
88,10D,0
66,111,12
61,104,5
89,10C,721
90,10D,0
55,111,12
59,10C,745
87,10D,0
55,111,12
48,104,5
54,10C,744
92,10D,0
54,111,12
59,10C,732
88,10D,0
61,111,12
56,104,5
86,10C,720
91,10D,0
54,111,12
50,10C,735
88,10D,0
54,111,12
49,104,5
53,10C,732
91,10D,0
56,111,12
60,10C,739
88,10D,0
53,111,12
61,104,5
53,10C,725
93,10D,0
53,111,12
95,10C,721
88,10D,0
53,111,12
59,104,5
55,10C,735
91,10D,0
54,111,12
60,10C,732
90,10D,0
54,111,12
58,104,5
66,10C,727
90,10D,0
56,111,12
83,10C,728
88,10D,0
54,111,12
59,104,5
54,10C,732
91,10D,0
55,111,12
49,10C,733
88,10D,0
54,111,12
49,104,5
53,10C,733
92,10D,0
55,111,12
81,10C,724
88,10D,0
56,111,12
61,104,5
53,10C,721
91,10D,0
53,111,12
60,10C,717
89,10D,0
54,111,12
48,104,5
54,10C,728
92,10D,0
54,111,12
59,10C,729
88,10D,0
56,111,12
[/code]
