CanOpen communication with Qt on udoo Neo

Discussion in 'UDOO NEO' started by Sassus-Bourda, Mar 17, 2016.

  1. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    What Ubuntu Version are you using?

    Gesendet von meinem FP2 mit Tapatalk
     
  2. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    I use an ubuntu 14.04
     
  3. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    I try to set-up a VM to test.

    Gesendet von meinem FP2 mit Tapatalk
     
  4. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    Ok I did the same with a clean environment !

    Now when I build I have this error :

    c:command not found

    and always this one too :

    Cannot read /opt/poky/2.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory

    Just to be sure I have to put in the qtcreator.sh this line before the
    #! /bin/sh:
    source /opt/poky/2.1/environment-setup-cortexa9hf-neon-poky-linux-gnueabi
     
    Last edited: Jun 22, 2016
    graugans likes this.
  5. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    Hi graugans,

    Any advance on your side?

    For my part I did some modifications :

    First in the qtcreator.sh I add the qmake variable I follow this tuto http://wiki.wandboard.org/index.php/Setup_QT_creator_for_developing_QT_apps_on_wandboard

    I also modify the qmake.conf on location /home/pierre/Qt/5.6/Src/qtbase/mkspecs/linux-arm-gnueabi-g++ I just put the complete path for compiler of toolchain.

    My first errors is no longer display but now Qt said "Failed to start program. Path or permissions wrong?"

    Any ideas?
     
  6. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    Finally it's work on my udoo not on my pc but no matters for now !

    The new problem is that when I try to build the serialbus example the library libQt5SerialBus.so.5 is not found.. Where can I download just the .so file because I don't want install Qt on my board!
     
  7. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    You followed the instruction from my post with the image link?.

    Gesendet von meinem FP2 mit Tapatalk
     
  8. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    It's good I can cross-compile !!

    Thank you very much for your help!

    One last question my wifi doesn't works with the image I have on interface file the line "iface wlan0 inet dhcp" but no connections..

    Any idea?
     
  9. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
  10. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    Hi,

    So everything work fine thanks for your help graugans!

    I can launch the qserialbus example on my udoo board but now I have some new issues..

    First when I connect the board :
    "SocketCanBackend: No such configuration as 4 in SocketCanBackend"
    Cannot apply parameter: QCanBusDevice::ConfigurationKey(BitRateKey) with value: QVariant(int, 500000)

    And after few frames send I get the following error :
    "No buffer space available"

    Futhermore I don't receive the frame send by the board on my pc and my pc doesn't receive the frame send from the board..

    Thanks in advance for your help
     
  11. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    Sorry, I did not yet managed to attach an CAN client to test.

    Gesendet von meinem FP2 mit Tapatalk
     
  12. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    Ok but I thought Modjo have already succeed, are you in contact with him?

    Do you think you will test this part soon?
     
  13. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
  14. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    Yes I already follow this tuto and I succeed with the udoobuntu distribution.

    So with poky distriution I launch a command prompt with putty on my pc and dump the frame with a second user and with udoo I send a frame as root.

    The result is positive but no way with no loopback

    Thanks for your answer
     
    Last edited: Jul 6, 2016
    graugans likes this.
  15. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
  16. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
  17. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    Hi,

    Screen is not a part of Qt image unfortunately but I dit it with another ssh session see my previous post.

    But no result when I try to send frame to another client
     
  18. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    see after a class that i create to use CAN on NEO :

    QCan.h

    and

    QCan.cpp

    Let me know if it can help you
     
  19. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    I create a new Qt projet with that classe ?

    Why use this classe, the QSerialBus class is not working on Neo?

    Thanks for your help
     
  20. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    I didn't rewrite QserialBus, it just to show you how i use this class with QProcess to use CAN on NEO. And yes you could create a new project with this class !
     

Share This Page