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. Windows CE 6.0 and SerialPort
Forum Updated to NodeBB v4.3 + New Features

Windows CE 6.0 and SerialPort

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.9k 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.
  • 0 Offline
    0 Offline
    0xFEEDC0DE64
    wrote on last edited by
    #1

    Hi,

    I need to read and write data to a serial port on an embedded device, that runs Windows CE 6.0. On the CD was the SDK that uses MSVC2005 (it's called NewBest6410).
    Sadly, the program doesnt start and open a window!
    I was able to compile qt-everywhere-opensource-src-4.8.7 and a sample application. A sample application without any dependencies but qt runs successfully on that device!!
    I compiled successfully the Qt-Addon QtSerialPort.
    When I add the include path and lib to my application pro file, the application still opens successfully.
    But when I call any method of that addon, the program does not start anymore.

    Is there some way to debug this? I dont have a windows ce debugger or something like that. I put the .exe file on a usb stick to start it on the device.

    Thanks for any ideas!

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Fogord
      wrote on last edited by
      #2

      Hi 0xFEEDC0DE64,

      Attach code how you include lib and call method.

      When i put my .exe in the CE device i put next lib in the same directory. That is:
      QtCore4.dll, QtDeclarative4.dll, QtGui4.dll, QtNetwork4.dll, QtScript4.dll, QtSql4.dll

      If you press F3 in the Total Commander at the .exe you will see all needed .dll to your program

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

        Hi, thanks for your help!

        I used dependancy walker and it looks ok.
        The dll for serial port was also on that usb stick in the same directory.
        The application runs on my development computer (compiled with the right compiler) successfully. So the calls to the lib should be correct.

        This is the signal that gets triggerd after pressing a button (so it doesnt open the port on program launch):

        m_port = new SerialPort(m_infos.at(0), this);
        m_port->setRate(SerialPort::Rate9600);
        if(!m_port->open(SerialPort::ReadWrite))
        {
        debug_text(QString("Open failed! %0 %1").arg(m_port->error()).arg(m_port->errorString()));
        return;
        }

        m_infos contains the only port (on windows ce and the dev computer).

        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