Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 21 22:14

    peterbarker on nkf1-messages

    (compare)

  • Sep 21 22:14

    peterbarker on gcov

    (compare)

  • Sep 17 04:21

    peterbarker on master

    analyzer_motorbalance: add tri … textdump_reader: understand dou… (compare)

  • Feb 19 23:33
    edwinhayes commented #116
  • Feb 19 23:33
    edwinhayes closed #116
  • Feb 19 23:33
    edwinhayes opened #116
  • Feb 19 23:25
    peterbarker closed #115
  • Feb 19 23:25
    peterbarker commented #115
  • Feb 19 23:25

    peterbarker on master

    Fixed issue with detection of f… (compare)

  • Feb 19 23:22
    edwinhayes opened #115
  • Feb 19 22:59

    peterbarker on master

    modules/mavlink: update mavlink… Makefile: build mavlink for wir… (compare)

  • Jan 22 23:23

    peterbarker on rotate-on-sender-heartbeat

    (compare)

  • Jan 22 23:23

    peterbarker on master

    dataflash_logger: only act on h… Makefile: relax field initialis… Track new test results (compare)

  • Jan 22 23:23
    peterbarker closed #114
  • Jan 11 05:21
    peterbarker synchronize #114
  • Jan 11 05:21

    peterbarker on rotate-on-sender-heartbeat

    Track new test results (compare)

  • Jan 11 05:09
    peterbarker synchronize #114
  • Jan 11 05:09

    peterbarker on rotate-on-sender-heartbeat

    Makefile: relax field initialis… (compare)

  • Jan 11 04:56
    peterbarker opened #114
  • Jan 11 04:55

    peterbarker on rotate-on-sender-heartbeat

    dataflash_logger: only act on h… (compare)

7bpm
@7bpm

I'm using mavlink-router to get the data from a Pixhawk Cube running ArduRover v.3.5.1

In my mavlink-router.conf file I've setup:

[UartEndpoint to_fc]
Device = /dev/ttyUSB0
Baud = 1500000

[UdpEndpoint to_dflogger]
Mode = Eavesdropping
Address = 127.0.0.1
Port = 14556

In the dflogger.conf I have:

[dflogger]
log_dirpath=/home/fible/start_dflogger/dataflash

[solo]
#telemDev=/dev/ttyUSB0%
#telemFlow=false
#telemBaud=1500000%
telem_forward_port=14556
soloIP=127.0.0.1
You were right the serial protocol was mavlink2, so I've just flipped it to mavlink1 and it worked as the 0xfd messages are not showing up in the output:
dataflash_logger starting: built Jul 12 2019 09:18:38
df-tfc: connecting to telem-forwarder at 127.0.0.1:14556
mh-h: sending heartbeat
mh-dfl: sending start packet to (0/0)
Heartbeat received from 1/1
mh-dfl: sending start packet to (0/0)
mh-h: sending heartbeat
Heartbeat received from 1/1
mh-dfl: sending start packet to (0/0)
mh-h: sending heartbeat
37 messages supressed
mh-h: sending heartbeat
Heartbeat received from 1/1
mh-dfl: sending start packet to (0/0)
mh-h: sending heartbeat
Heartbeat received from 1/1
mh-dfl: sending start packet to (0/0)
But now, when I arm the vehicle and then disarm it, dflogger creates the first .bin log, closes it and then it starts creating small (38Kb) log files and never stops.
apsync@apsync:~/start_dflogger/dataflash$ ls -sh
total 1.5M
  40K 10.BIN    40K 12.BIN    40K 2.BIN    40K 4.BIN    40K 6.BIN    40K 8.BIN   4.0K LASTLOG.TXT
  40K 11.BIN  1000K 1.BIN     40K 3.BIN    40K 5.BIN    40K 7.BIN    40K 9.BIN
apsync@apsync:~/start_dflogger/dataflash$
Peter Barker
@peterbarker
I'd suggest changing to the UDP backend.
... unless you're running this on a Solo...
So you are getting data now, then?
In that case, you can stop fiddling ;-)
7bpm
@7bpm
Yes.! I'm getting data now but it keeps on generating small log files (about 1 every minute) even when the autopilot is disarmed...
Peter Barker
@peterbarker
Hmmm.
Is this pretty much a stock apsync image?
I vaguely recall fixing this on APSync master. Or some branch.
7bpm
@7bpm
It is installed on Ubuntu on a Intel NUC by mostly following your TX2_JP42 instructions
I'm git clonning dflogger from http://github.com/peterbarker/dronekit-la
Peter Barker
@peterbarker
Oh, right. Cool.
7bpm
@7bpm
So was that fixed in another branch?
Peter Barker
@peterbarker
Umm.
Kind of stretching my brain here.
Which git hash are you compiling?
Peter Barker
@peterbarker
I think the most recent commits on master will fix if you've got lots of different heartbeats floating around.
7bpm
@7bpm
sorry for my newbie question, but how do i find the git hash ?
Peter Barker
@peterbarker
git show springs to my fingers.
7bpm
@7bpm
i'm using
git clone --recurse-submodules http://github.com/peterbarker/dronekit-la
Peter Barker
@peterbarker
When did you make that clone? Within the last few days?
7bpm
@7bpm
commit 3cee03b98c639d456871afe91bf3ea7a4fa71f56 (HEAD -> master, origin/master, origin/HEAD)
Peter Barker
@peterbarker
Ah!
JAS.
Try a git pull?
I'll have to change the instructions to pull from the dronekit repo or something at some stage rather than my personal repo....
BTW, if you could take notes of any issues you encounter (and how you got past them) in an issue against APSync's github repo that would be great!
7bpm
@7bpm
I'm preparing a similar 1_create_base_image_tx2_JP42.txt for the Intel NUC install I'm doing (I've also managed to get APStreamline working on it). When the whole install will be working properly I'll try to post it somehow.
OK.
git pull changed 15 files
I'm running time make dataflash_logger again
7bpm
@7bpm
Nope, the same issue comes up. it keeps creating small .bin files
Peter Barker
@peterbarker
Darn.
7bpm
@7bpm
mh-h: sending heartbeat
mh-dfl: sending start packet to (0/0)
mh-dfl: Starting log, target is (1/155), I am (57/57)
Opened log file (/home/fible/start_dflogger/dataflash/1.BIN)
mh-h: sending heartbeat
mh-h: sending heartbeat
7 messages supressed
mh-dfl: Starting log, target is (1/155), I am (57/57)
Opened log file (/home/fible/start_dflogger/dataflash/2.BIN)
mh-h: sending heartbeat
mh-dfl: Current log size: 38600
mh-h: sending heartbeat
mh-dfl: No data packets received for some time (now=65312432 last=55213103).  Closing log.  Final log size: 38600
mh-dfl: sending stop packet to (1/155)
mh-dfl: sending start packet to (0/0)
mh-dfl: Starting log, target is (1/155), I am (57/57)
Opened log file (/home/fible/start_dflogger/dataflash/3.BIN)
mh-h: sending heartbeat
mh-dfl: Current log size: 38000
Peter Barker
@peterbarker
I'm assuming it works fine when the vehicle is armed?
Try setting parameters target_system_id and target_component_id in the configuration file.
under the [dflogger] section tag.
7bpm
@7bpm
It does create a proper log file when the vehicle is armed and as soon as you disarm it just continues creating these small files
Peter Barker
@peterbarker
Try setting those parameters? They should match your vehicle's system ID
7bpm
@7bpm
both their values should be SYSID_THISMAV parameter of my pixhawk?
i.e.
[dflogger]
log_dirpath=/home/apsync/start_dflogger/dataflash
target_system_id=1
target_component_id=1
Peter Barker
@peterbarker
I think that's correct. Could be 155 - you'll have to try both, sorry.
I think the root cause of this was a change in ArduPilot some time back...
7bpm
@7bpm
with 1 didn't make a difference. I'm trying 155 now
Peter Barker
@peterbarker
OK. Sorry, if this doesn't work I'll have to come back next week and try to reproduce it locally.
7bpm
@7bpm
just tried 155. It stopped generating the small log files, but now I'm getting "Bad Logging' on Mission Planner and of course it doesn't create a log file when i arm the vehicle
the output has chaned to:
mh-h: sending heartbeat
mh-dfl: sending start packet to (155/155)
mh-dfl: sending start packet to (155/155)
mh-h: sending heartbeat
mh-dfl: sending start packet to (155/155)
mh-h: sending heartbeat
mh-dfl: sending start packet to (155/155)
mh-h: sending heartbeat
21 messages supressed
mh-h: sending heartbeat
7bpm
@7bpm
I'have to go for now. I'll try 'playing' with a couple of things latter on today and I'll report back.
Thank you so much for your help so far.!