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
    You have a recommendation for a 3.3V Type. I found one from TI and another one from Maxim

    Gesendet von meinem FP2 mit Tapatalk
     
  2. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Tested the SN65HVD230 , see the other thread to save repeating myself.
     
    graugans likes this.
  3. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    Hello guys,

    I'm stuck with the example of the qtserialbus example. When i try to compile the program directcly on my udoo quad board but the console display : Unknown module in QT:serialbus..

    Any advices?
     
  4. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Probably you don't have the qtserialbus build, what distro you use ?
     
  5. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    Problem solved i didn't used the good Qt version.

    Now I have my can example working! Next step is to set up the can pinout with the device tree editor but i don't understand how I neded to plug the gnd..

    Another things you use a can tranceiver it's an obligation to test? because I just have an usb "bridge" for can.

    Thanks for your follow up
     
  6. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    You probably have a peak or ixxat USB bridge they have CAN high/low signals so you'll need the transceiver but take a 3.3v type!!!

    When connecting two can TTL boards there is an application note from Siemens how to do this.

    You'll need to connect GND of both ends because CAN high/low is based on GND


    Gesendet von meinem FP2 mit Tapatalk
     
  7. Sassus-Bourda

    Sassus-Bourda Member

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

    How can I add a can bakend in the Qt serial bus example?

    I use an usb bridge with the FTDI drivers so the library install is not detect by the program.

    Thanks in advance
     
  8. modjo

    modjo Active Member

    Joined:
    Sep 29, 2014
    Messages:
    417
    Likes Received:
    127
    Hi, qtserialbus support only 3 backend for the moment. I don't know what CAN adaptator you use but check my previous link. In my case, i use peak can on Windows OS and socketCan on Neo. You can find more information in Qt doc ...
     
  9. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    Hi, thanks for your answer.

    Yes I see in Qt doc that only 3 backends are supported but I thought that with the fonction plugins() in QCanBus class I was able to add a new backend...
     
  10. Sassus-Bourda

    Sassus-Bourda Member

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

    How can I install the 5.6 version of Qt in the udubuntu OS?

    Thanks
     
  11. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    If you asking for the NEO then you need to build (cross compile) it yourself. I don't think there are instructions specifically for the Neo, the nearest is the for the Quad/Dual.
     
  12. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    What are you planning to do? I can provide a qt5 Yocto image + toolchain for cross devel

    Gesendet von meinem FP2 mit Tapatalk
     
  13. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    It could be awesome !

    I plan to test the can bus example provide by Qt v5.6 on my udoo board to communicate with my pc.
     
  14. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    So can you provide me what you says please Graugans it could be very useful for me.

    Thanks in advance
     
  15. graugans

    graugans Administrator Staff Member

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

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    Thanks a lot !

    A question about the image on window how can I put the image on an SD Card? Usualy I used the program win32DiskManager but it with .img files.

    Thanks in advance
     
  17. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    You can use it anyway

    Gesendet von meinem FP2 mit Tapatalk
     
  18. Sassus-Bourda

    Sassus-Bourda Member

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

    I have those errors when I try to build my program :

    General message :
    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

    Compiler output :
    erreur : [.obj/MyClassName.o] Error 127

    Can you help me please?

    Pierre
     
  19. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    I had a flu the last few days I try to check. The oe-device-extra.pri shouldn't be needed

    Gesendet von meinem FP2 mit Tapatalk
     
  20. Sassus-Bourda

    Sassus-Bourda Member

    Joined:
    Dec 21, 2015
    Messages:
    42
    Likes Received:
    4
    OK I hope you good now !

    Let me know if you resolve this error I can't find anything yet to resolve it by myself.

    Thanks in advance,

    Pierre
     

Share This Page