Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Filtering in socketcan communication
Forum Updated to NodeBB v4.3 + New Features

Filtering in socketcan communication

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 199 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.
  • D Offline
    D Offline
    Damian7546
    wrote on 8 Feb 2025, 09:44 last edited by
    #1

    I am wiriting my first app on embeded STM32 system, contains socektcan communication.
    Anybody can help me how I should set filter to receive only frames with 0x32F id ?

    filter.frameId = 0x32F00000;
    filter.frameIdMask = 0xFFFFFFFF;
    filter.format = QCanBusDevice::Filter::MatchBaseAndExtendedFormat;
    filter.type = QCanBusFrame::RemoteRequestFrame;
    

    ?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Damian7546
      wrote on 9 Feb 2025, 07:59 last edited by Damian7546 2 Sept 2025, 10:54
      #3

      @SGaist I also tried 0x0000032F, but without result, so I thought that I something do not understand .

      Filtering works properly when I comment below line:
      filter.type = QCanBusFrame::RemoteRequestFrame;

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 8 Feb 2025, 17:41 last edited by
        #2

        Hi,

        You are writing about ID 0x32F but you set your filter to 0x32F00000 which is not the same value. Why these zeros ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • D Offline
          D Offline
          Damian7546
          wrote on 9 Feb 2025, 07:59 last edited by Damian7546 2 Sept 2025, 10:54
          #3

          @SGaist I also tried 0x0000032F, but without result, so I thought that I something do not understand .

          Filtering works properly when I comment below line:
          filter.type = QCanBusFrame::RemoteRequestFrame;

          1 Reply Last reply
          0
          • D Damian7546 has marked this topic as solved on 9 Feb 2025, 10:54

          1/3

          8 Feb 2025, 09:44

          • Login

          • Login or register to search.
          1 out of 3
          • First post
            1/3
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved