Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] QSerialPort and canbus
Qt 6.11 is out! See what's new in the release blog

[Solved] QSerialPort and canbus

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 907 Views 2 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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by mrdebug
    #1

    Hi. I have a problem with a particular protocol on canbus.
    The protocol document says:

    "Communication is standard asynchronous half-duplex serial communication (8N1) at 19200 baud.
    The bus start byte comprises a break signal (>=11 bits to the logical value ‘0’) followed by a
    synchronisation byte (0x55)."

    How can I send 11 bits to the logical value '0'?

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    K 1 Reply Last reply
    0
    • mrdebugM mrdebug

      Hi. I have a problem with a particular protocol on canbus.
      The protocol document says:

      "Communication is standard asynchronous half-duplex serial communication (8N1) at 19200 baud.
      The bus start byte comprises a break signal (>=11 bits to the logical value ‘0’) followed by a
      synchronisation byte (0x55)."

      How can I send 11 bits to the logical value '0'?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @mrdebug

      Not sure what you intend with the post?

      Do you mean a word is missing and it should say: "(>=11 bits set to the logical value ‘0’)" ?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • mrdebugM Offline
        mrdebugM Offline
        mrdebug
        wrote on last edited by
        #3

        Solved by using
        SerialPort.setBreakEnabled(true);
        SerialPort.setBreakEnabled(false);

        Need programmers to hire?
        www.labcsp.com
        www.denisgottardello.it
        GMT+1
        Skype: mrdebug

        1 Reply Last reply
        0
        • aha_1980A aha_1980 has marked this topic as solved on

        • Login

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