I installed the Edison module into pixhawk2, and flash apsyns-edison image to Edison, now I can run linux in Edison successfully, and I have set the parameters:
SERIAL2_PROTOCOL = 1
SERIAL2_BAUD = 921
LOG_BACKEND_TYPE = 3
but if I run command below:
spsync@apsync:~/dronekit-python/examples/vehicle_state$ python vehicle_state.py --connect ‘/dev/ttyMFD1,57600’
it print below:
Connecting to vehicle on: /dev/ttyMFD1,57600
link timeout, no heartbeat in last 5 seconds
I am not sure that baut rate, so I change the baut rate, and try another command below:
spsync@apsync:~/dronekit-python/examples/vehicle_state$ python vehicle_state.py --connect ‘/dev/ttyMFD1,921600’
unfortunity, the same error," timeout"
I am confused about it, woule you please give me some hints, thanks in advance…
I installed the Edison module into pixhawk2, and flash apsyns-edison image
to Edison, now I can run linux in Edison successfully, and I have set the
parameters:
SERIAL2_PROTOCOL = 1
SERIAL2_BAUD = 921
LOG_BACKEND_TYPE = 3
but if I run command below:
spsync@apsync:~/dronekit-python/examples/vehicle_state$ python
vehicle_state.py --connect ‘/dev/ttyMFD1,57600’
it print below:
Connecting to vehicle on: /dev/ttyMFD1,57600
link timeout, no heartbeat in last 5 seconds
You can’t sensibly connect directly to the serial device, as cmavnode will
be holding the serial device open.
cmavnode relays onto various other ports you might try opening instead -
try “–connect udp:localhost:9000”, perhaps. See cmavnode.conf for other
ports.
it print as below:
Connecting to vehicle on: udp:localhost:9000
APM:Copter V3.4-dev (c9bd67e4)
PX4: 44574c48 NuttX: 579e82d4
Frame: QUAD
PX4v2 002F002E 3435510A 38393730
Exception in message handler for HEARTBEAT
mode 0 not available on mavlink definition
Exception in message handler for HEARTBEAT
mode 0 not available on mavlink definition
Exception in message handler for HEARTBEAT
mode 0 not available on mavlink definition
Exception in message handler for HEARTBEAT
mode 0 not available on mavlink definition
I think this log indicate it’s unnormal, so what can I do
I see the cmavnode.conf file, the content as below:
[aseriallink]
type=serial
port=/dev/ttyMFD1
baud=921600
sim_enable=false