CAN Message



  • hi every one,

    does it exist a object of CANMessage to allow to send message with protocole CAN like :

    	        CANMessage can_message;
                    can_message = new CANMessage(0b00, 0, 0, 0, 0b0, 0b10000, 0b0101000001, 0, 0, null, false);
                   port->write(can_message );
    
    

  • Qt Champions 2018

    Hi @martial123,

    are you looking for something like QCanBusFrame?

    Regards



  • @aha_1980
    i don't know, i just would like to send messages on serial port with this form for exemple :
    can_message = new CANMessage(0b00, 0, 0, 0, 0b0, 0b10000, 0b0101000001, 0, 0, null, false);

    i pick that exemple from programme in C#...


  • Lifetime Qt Champion

    @martial123
    Hi
    Using CanBus is very not the same as using the serial port.
    So what do you want to talk to in the other end ?
    Does it even understand CanBus messages ?



  • don't worry, i have found how i can do that..
    yes it's understand me but he need to configure to talk the same language.
    And to do that, i need to send him many trame on serial port .
    but i have understand how he did it with class : CANMessage can_message;

    he created the class, it's not a basic class ..

    so i need to re created the same class to allow me send the good trame ..


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.