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. Send and receive image over serial port
Qt 6.11 is out! See what's new in the release blog

Send and receive image over serial port

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 1 Posters 3.0k 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    Hi,

    I want to create a desktop application which at one terminal opens and reads an image from a file, send it over the serial port and receive it via serial port at the other terminal. Could anyone please let me know the steps and necessary functions to create the app?

    Thank you in advance.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on last edited by
      #2
      1. Read this Example : http://qt-project.org/doc/qt-5.1/qtserialport/terminal.html
      2. You have the image, convert and send as ByteArray. http://qt-project.org/wiki/Converting_QPixmap_to_QByteArray

      One Quick Question : Why do you do so ? Because, if the image is big, it is going to take real long time.


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        Thank you.. I want to send images of 1kB for an application.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rahul Das
          wrote on last edited by
          #4

          1 x 1024 x 10 / 9600 (bw) ~ Approximately 1 second.


          Declaration of (Platform) independence.

          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 Extensions
          • Unsolved