Please select Into the mobile phone version | Continue to access the computer ver.
Close
You need to log in before you can reply       Login | Register now

[Help] Onboard SDK sample (Blocking)

Author: Polyhedrus 2017-3-31 22:05
3 339
Hi,

I have been trying to run the sample blocking app from the onboard SDK and have problems. Having spent the last 5 days trying to resolve this, I thought I would ask here.

The sample runs fine on the Manifold but I am trying to get this running on the Jetson TX2 which is running:-
Ubuntu 16.04
gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4)
Onboard SDK version is 3.2
make 4.1
cmake version 3.5.1
ldd (Ubuntu GLIBC 2.23-0ubuntu7) 2.23

linux-vdso.so.1 =>  (0x0000007fa2517000)
libstdc++.so.6 => /usr/lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000007fa2363000)
libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007fa22b6000)
libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000007fa2294000)
libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007fa2268000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007fa2121000)
/lib/ld-linux-aarch64.so.1 (0x0000005573c68000)

Trace from GDB
-------------------------------------------------------

DJI:nboardSDK:inuxSerialDevice::_serialWrite (this=0x451c20, buf=0x4533e0 "\252\023", len=19) at /home/nvidia/DJI/Onboard-SDK/platform/linux/src/LinuxSerialDevice.cpp:359
359      return write(m_serial_fd, buf, len);
Run till exit from #0  0x0000007fb7d37930 in write () at ../sysdeps/unix/syscall-template.S:86
��g32�TDJI:nboardSDK:inuxSerialDevice::_serialWrite (this=0x451c20, buf=0x4533e0 "\252\023", len=19) at /home/nvidia/DJI/Onboard-SDK/platform/linux/src/LinuxSerialDevice.cpp:360

The moment it calls and returns from the return write(m_serial_fd, buf, len) garbage starts appearing in the debug window??

From the terminal it looks like this
------------------------------------------------------
User Configuration read successfully.

These are your User_Config settings.
Serial port = /dev/ttyUSB1
Baudrate = 230400
App ID: *************
App Key: *************************

Does everything look correct? If not, navigate to Linux/UserConfig.txt and make changes.

STATUS init,line 51: Attempting to open device /dev/ttyUSB1 with baudrate 57600...
STATUS init,line 60: ...Serial started successfully.
                                                    ��g32�TERROR parseDroneVersionInfo,line 249: Drone version was not obtained. Please restart the program or call getDroneVersion

                                                                                                                                                                                      Attempting activation..
                                                                                                                                                                                                             ���#JnERROR parseDroneVersionInfo,line 249: Drone version was not obtained. Please restart the program or call getDroneVersion
                                                                                                            �>��`�00000000000000000000000000000000O�3]Automatic activation successful.
                                                                                                                                                                                          �t~ۈFailed to obtain control.
                                                                                                                                                                                                                           Your RC mode switch is not in mode F. (Is the RC connected and paired?)
                                                               This program will exit now.

You get alot of rubbish on the screen as though there is a problem with flow control or baud rate but I have tried with all options and the result is the same. The FTDI to JST cable is fine - it works on other devices just not the TX2.

I hope that somebody has some idea

Thanks


Reply
Replies
Polyhedrus
I have solved it!
Thanks
2017-3-31 22:49
jcogs
Polyhedrus Posted at 2017-3-31 22:49
I have solved it!
Thanks

I'm having a similar issue running the blocking example on a Beagle Bone Black. Could you please share how you fixed your issue?
2017-4-7 05:33
suhang
Polyhedrus Posted at 2017-3-31 22:49
I have solved it!
Thanks

how to? can you please share it?
2017-5-10 15:35
You need to log in before you can reply Login | Register now

Quick Reply Back to top Back to list
Quick Reply Back to top Back to list