- Posts: 1433
Datalogger
- rbe2012
- Offline
- So much to do, so little time...
I would prefer the logging to be disabled as long as configuration is not finished.
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
- Sometimes "empty" lines (with invalid values, esp. timers=0) appear without changing any inputs
- often the converting to CSV stops with a message like "Cannot handle API version 0xe7" (with various versions 0x2b, 0xb8, 0x71...)
- often I have only a few or even one line in the csv output (can be an impact of the previous)
- I have chosen (with others) the rtclock, but it only appeared in the header line when I choose "All" (also no data from the clock logged).
EDIT: Forgot to tell that I use emu_devo12-v3.0.0-9caabf.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
I'm not quite sure what you mean by datalogging begins before you are finished. You cannot setup the switches while the datalogger is running. There is the potential (say when moving from None to 'THR' to capture some spurious events. That is what the reset button is for
I could add a 'Save' / 'Cancel' button and cache all changes. I didn't think it was worthwhile, but it isn't too difficult.
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
Logging while changing: I have seen the free bytes going down when I move through the switches - some of them were active (like one of GEAR0/1). Because the output was not what I expected I can not say if something useful was logged at this time or not.
To clarify: I spoke about changing the enable-switch, not the data sources.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
$ ../utils/datalog2csv.py -a --bin filesystem/devo8/datalog.bin --out=test.csv
Cannot handle API version 0x02
I tried to log Timer1, Ch3, Ch6, THR, GEAR0, GEAR1 and RTC Time
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
-/c/Workspace/PhracturedBlue/- src
$ ../utils/datalog2csv.py -a --bin filesystem/devo8/datalog.bin --out=test.csv
-/c/Workspace/PhracturedBlue/- src
$ cat test.csv
Timer1,Timer2,Timer3,Timer4,Volt1,Volt2,Volt3,Temp1,Temp2,Temp3,Temp4,RPM1,RPM2,AIL,ELE,THR,RUD,AUX2,AUX3,AUX4,AUX5,AUX6,AUX7,RUD_DR0,RUD_DR1,RUD_DR2,ELE_DR0,ELE_DR1,ELE_DR2,AIL_DR0,AIL_DR1,AIL_DR2,GEAR0,GEAR1,MIX0,MIX1,MIX2,FMODE0,FMODE1,FMODE2,HOLD0,HOLD1,TRAIN0,TRAIN1,Channel1,Channel2,Channel3,Channel4,Channel5,Channel6,Channel7,Channel8,Channel9,Channel10,Channel11,Channel12,Virt1,Virt2,Virt3,Virt4,Virt5,Virt6,Virt7,Virt8,Virt9,Virt10,PPM1,PPM2,PPM3,PPM4,PPM5,PPM6,PPM7,PPM8,Latitude,,Longitude,Altitude,Velocity,GPSTime,Clock
0,0,0,0,0,0,0,0,0,156,0,0,0,100,156,156,100,156,156,100,156,156,156,100,100,156,156,100,156,156,100,156,100,156,0,0,156,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2364145664,739559249,16712402,658688,0
-/c/Workspace/PhracturedBlue/- src
$ cat test.csv | awk '{ line++; n=split($0,X,","); printf "Line %d: %s items\n", line, n;}'
Line 1: 81 items
Line 2: 80 items
Am I doing something completely wrong? I am in doubt of myself actually...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
Timer1,THR,GEAR0,GEAR1,Channel3,Channel6,GPSTime
0,54,156,100,156,24,47343745
0,32,156,100,156,19,47343746
0,32,156,100,156,19,47343747
0,32,156,100,156,19,47343748
0,32,156,100,156,19,47343749
0,32,156,100,156,19,47343750
0,32,156,100,156,19,47343751
0,157,156,100,156,250,47343752
0,216,156,100,156,5,47343753
0,98,156,100,90,32,47343754
1,191,156,100,90,0,47343755
2,21,156,100,90,17,47343756
3,215,156,100,90,5,47343757
4,204,156,100,90,3,47343758
5,156,156,100,90,249,47343759
6,87,156,100,90,30,47343760
7,191,156,100,90,0,47343761
13,100,156,100,90,33,47343769
14,156,156,100,90,250,47343770
15,159,156,100,90,250,47343771
12,1,128,0,0,3,576
Timer1,THR,GEAR0,GEAR1,Channel3,Channel6,GPSTime
17,156,100,156,156,250,47343779
12,1,128,0,0,3,576
Timer1,THR,GEAR0,GEAR1,Channel3,Channel6,GPSTime
19,64,100,156,66,25,47343785
19,231,100,156,37,8,47343786
20,157,100,156,156,250,47343787
20,157,100,156,156,250,47343788
20,157,100,156,156,250,47343789
20,157,100,156,156,250,47343790
20,157,100,156,156,250,47343791
0,0,0,0,0,0,0
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Let me know if you see more issues.
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
-/x/Transfer/privat/Workspace/PhractuedBlue/deviation/- src
$ hg summary
parent: 1797:e5d75984334d tip
Off by one error
branch: default
commit: 1 unknown (clean)
update: (current)
-/x/Transfer/privat/Workspace/PhractuedBlue/deviation/- src
$ ../utils/datalog2csv.py -a --bin filesystem/devo8/datalog.bin --out=log
Cannot handle API version 0x02
-/x/Transfer/privat/Workspace/PhractuedBlue/deviation/- src
$ cat log
Timer1,THR,GEAR0,GEAR1,Channel3,Channel6,Clock
00:00,-100,-100,100,-101,0,08:33:43 2013-12-30
00:00,-100,-100,100,-101,0,08:33:44 2013-12-30
00:00,-100,-100,100,-101,0,08:33:45 2013-12-30
00:00,-100,-100,100,-101,0,08:33:46 2013-12-30
00:00,-100,-100,100,-101,0,08:33:47 2013-12-30
00:00,-100,-100,100,-101,0,08:33:48 2013-12-30
00:00,-100,-100,100,-101,0,08:33:49 2013-12-30
00:00,-100,-100,100,-101,0,08:33:50 2013-12-30
00:00,-100,-100,100,-101,0,08:33:51 2013-12-30
00:00,-100,-100,100,-101,0,08:33:52 2013-12-30
00:00,-100,-100,100,-101,0,08:33:53 2013-12-30
00:00,-100,-100,100,-101,0,08:33:54 2013-12-30
00:00,-100,-100,100,-101,0,08:33:55 2013-12-30
00:00,-100,-100,100,-101,0,08:33:56 2013-12-30
00:00,-100,-100,100,-101,0,08:33:57 2013-12-30
00:00,-100,-100,100,-101,0,08:33:58 2013-12-30
00:00,-100,-100,100,-101,0,08:33:59 2013-12-30
00:00,20,-100,100,18,0,08:34:00 2013-12-30
00:00,20,-100,100,18,0,08:34:01 2013-12-30
00:00,20,-100,100,18,0,08:34:02 2013-12-30
00:00,20,-100,100,18,0,08:34:03 2013-12-30
00:00,20,-100,100,18,0,08:34:04 2013-12-30
00:00,20,-100,100,18,0,08:34:05 2013-12-30
00:00,20,-100,100,18,0,08:34:06 2013-12-30
00:00,20,-100,100,18,0,08:34:07 2013-12-30
00:00,20,-100,100,18,0,08:34:08 2013-12-30
00:00,20,-100,100,18,0,08:34:09 2013-12-30
00:00,20,-100,100,18,0,08:34:10 2013-12-30
00:00,20,-100,100,18,0,08:34:11 2013-12-30
00:00,20,-100,100,18,0,08:34:12 2013-12-30
00:00,20,-100,100,18,0,08:34:13 2013-12-30
00:00,20,-100,100,18,0,08:34:14 2013-12-30
00:00,20,-100,100,18,0,08:34:15 2013-12-30
00:00,20,-100,100,18,0,08:34:16 2013-12-30
00:00,20,-100,100,18,0,08:34:17 2013-12-30
00:00,20,-100,100,18,0,21:24:29 2123-12-40207
I will make some more realistic tests...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- Hexperience
- Offline
- Posts: 588
PB, you are the best....
Can't wait to get my RPM sensors and test this out... CHEERS!!!!!!
There are 10 types of people in this world. Those that understand binary and those that don't.
Please Log in or Create an account to join the conversation.
- Hexperience
- Offline
- Posts: 588
Of course I have backups of everything, but this wouldn't be good at the field...
AHHH crud... added a couple of models since my backup...
Anyway to get into the devo when it's in this state?
There are 10 types of people in this world. Those that understand binary and those that don't.
Please Log in or Create an account to join the conversation.
- Kdean
- Offline
- Posts: 213
Please Log in or Create an account to join the conversation.
- mazi
- Offline
- Posts: 28
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
The code is here:
bitbucket.org/PhracturedBlue/deviation/r...utils/datalog2csv.py
You need python installed to use it.
Please Log in or Create an account to join the conversation.
- Hexperience
- Offline
- Posts: 588
It could include;
-usb flasher
-datalog display
-model editor/backup/organizer
-icon creator
-emu (select-able tx model)
-template organizer/creator for screens
I wish I had the skills to do such a thing.
There are 10 types of people in this world. Those that understand binary and those that don't.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Datalogger