Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. CAN Message
Qt 6.12 LTS is out! See what's new in the release blog

CAN Message

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 887 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • martial123M Offline
    martial123M Offline
    martial123
    wrote on last edited by
    #1

    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 );
    
    
    aha_1980A 1 Reply Last reply
    0
    • martial123M martial123

      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 );
      
      
      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @martial123,

      are you looking for something like QCanBusFrame?

      Regards

      Qt has to stay free or it will die.

      martial123M 1 Reply Last reply
      1
      • aha_1980A aha_1980

        Hi @martial123,

        are you looking for something like QCanBusFrame?

        Regards

        martial123M Offline
        martial123M Offline
        martial123
        wrote on last edited by
        #3

        @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#...

        mrjjM 1 Reply Last reply
        0
        • martial123M martial123

          @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#...

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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 ?

          1 Reply Last reply
          1
          • martial123M Offline
            martial123M Offline
            martial123
            wrote on last edited by martial123
            #5

            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 ..

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt
            • Unsolved