Posts by Kaiser

    Hello,


    I'm trying to trigger a scanner and read the read data over a serial connection.
    Triggering by a short message and reading the data works fine but is very slow.
    After reading the data, I want to trigger again, but I get no result. I have to wait aprox. 200ms Sleep(200). When I trigger after that time, I get a result. When I don't wait, my scanner delivers no data back.
    What could be the problem?
    I assume maybe the timeouts are the problem? But I set it to:
    COMMTIMEOUTS timeouts;
    timeouts.ReadIntervalTimeout = MAXDWORD; // MAXDWORD
    timeouts.ReadTotalTimeoutMultiplier = 0;
    timeouts.ReadTotalTimeoutConstant = 0;
    timeouts.WriteTotalTimeoutMultiplier = 0;
    timeouts.WriteTotalTimeoutConstant = 0;
    and no success.
    I raised the thread priority from THREAD_PRIORITY_NORMAL up to THREAD_PRIORITY_TIME_CRITICAL but also no success.
    Anyone a Idea? I don't know how to speed up my reading.


    Thanks a lot in advance

    Hello,


    I cannot finish the touch calibration after set following properties in the registry.


    Code
    1. reg open \Hardware\Devicemap\Touch
    2. reg set value Debounce dword 0
    3. reg set value MinCalibrationPointCount dword 1
    4. reg set value PollUpTimeMultiplier dword 1
    5. reg set value TouchSamples dword 3


    When I finish touch calibration, it starts again in the middle.
    When I clear the registry in the bootloader, I am able to calibrate and save.
    After setting the registry values again to this above, it doesn't word any more.


    Any ideas? With NetDCU 11 there were no problems.


    [UPDATE]
    I have tested it with all parameters seperately. It works only if no parameter is set. If at least one parameter is set, the calibration does not finish.
    When I remove the parameter, it works again. After deleting the registry I have following parameters set:


    For information here is the debug output from the old NetDCU11 board:

    Code
    1. TCHPDD: Version 1.6, Key = HARDWARE\DEVICEMAP\TOUCH
    2. TCHPDD: EnableTouchscreen UCB1400
    3. TCHPDD: EnableTouchscreen PASSED


    and here is the debug output from the new NetDCU11.2 not working board:

    Code
    1. TCHPDD: Version 1.6, Key = HARDWARE\DEVICEMAP\TOUCH
    2. TCHPDD: EnableTouchscreen WM9715
    3. TCHPDD: EnableTouchscreen PASSED


    The kernel is the latest you send to me:

    Code
    1. Windows CE Kernel for ARM (Thumb Enabled) Built on Mar 8 2013 at 17:05:33
    2. NetDCU11 V1.28 - Firmware Init
    3. Copyright (c) 2007 F&S Elektronik Systeme GmbH
    4. Build: Jun 12 2013/16:21:05

    Hello,


    I reviewed my sourcecode and found following out:
    1) The network connection problems start wehen I use the send method. The first few times it works fine but after some sent messages it works slower and slower. After about 4 messages ist takes a few seconds until message is send out, then longer and longer. Later the network connection brakes down.
    2) I assume that the reason are the very short messages I send (about 20Bytes). So I tested following points 3) and 4) but without success.
    3) I tried non blocking mode with

    Code
    1. u_long ul = 1U;
    2. int iResult = ioctlsocket(m_ServerSocket, FIONBIO, &ul);


    4) I tried disabling Nagle algorythm (TCP_NODELAY) with

    Code
    1. char value = 1;
    2. iResult = setsockopt(m_ServerSocket, IPPROTO_TCP, TCP_NODELAY, &value, 4);


    5) Under NetDCU6 everything works fine - the problems are only on NetDCU11.


    Don't know what I could do to solve this problem. Are there some further ideas?



    Best regards, Kaiser

    Hello,


    I don't think it's the same problem like described in the other forum because it also happens without debugger.
    But now I will try some code optimizations. If nothing helps, I will try to make a test package and send it to you.


    Best regards, Kaiserle

    I have only one problem. I don't get a connection for all the tools (remote file viewer, remote zoomin etc.)
    Also the upload from notebook to netdcu board after compiling/for debugging is not possible.
    I think all settings are ok (like on my old WinXP notebook).
    Telnet works fine but with this tools (with succesful execution of cemgrc on netdcu board) I get no connection. Don't know why.
    Just seeing "Connecting to device" frame but no connection is established. :-(
    Anyone a hint? With my old notebook with WinXP there is no problem.

    Hello,


    I have to switch my system from WinXP to Win7. On WinXP I had installed eVC3.0 for NetDCU3, eVC4.0 for NetDCU6 and VS2008 for NetDCU11.
    eVC3.0 and eVC4.0 are not longer supported on Win7. What is the best solution to continue support for that old platforms?
    Can I develop for WinCE4.2 and WinCE4.0 with VS2008? Can I install the SDKs from the old boards for VS2008?
    At the moment I see only following installed SDKs for intelligent devices:
    Pocket PC 2003
    Smartphone 2003
    Windows Mobile 5.0 Pocket PC SDK
    Windows MObile 50. Smartphone
    NetDCU9 (for NetDCU11)
    The old SDKs are already installed but probably not compatible with VS2008?


    Or should I use a virtual machine with WinXP and the old IDEs eVC3.0 and eVC4.0?


    Best regards

    Hello,


    I have tested it now with "HKLM\drivers\builtin\usbfn\Priority256 drastically=10" (the old value was 100, but I haven't detected a difference - debugger is running without problems. I think after a time the problem occurs again.


    Today in the morning I was installing a software and used ftp+usb connections. No software was running and I had again a connection interrupt. Both connections has been closed and opened again after a few milliseconds automatically. But my ftp client was then not able to transfer any files. after a restart it worked again. So when no software was running I think it cannot be a problem of our software.

    Hello

    Quote

    - When you debug via Ethernet you are connnected via Ethernet only, means USB device cabe is detached?

    Yes, USB cable is detached when debugged over network.

    Quote

    - What happens if you decrease HKLM\drivers\builtin\usbfn\Priority256 drastically?

    I have to test but I am out of office until monday. Can tell you afterward more.

    Quote

    - Which hardware do you access and which Priortiy256 values set under HKLM\Drivers\Builtin\<driver>?

    I use for all hardware the default values, I mean I have nothing changed after installation of kernel.
    Serial1 and Serial2 have no value Priority256
    Usbfn has DWORD=100
    CAN1 has no value Priority256
    Network/Ethernet (propably Ethman?) has no value Priority256


    It's strange but this week I had no interrupts over USB cable until today. Have nothing changed. I only remember I haven't used network - but only serial connection and USB debugging.

    Hello,
    I tried your suggestion. All worked fine until now.
    Now I received the same error message like in the first message of this thread:

    Quote

    Die Remoteverbindung mit dem Gerät wurde unterbrochen...


    Completely the same behavior: Debugger is closed and display program hungs.
    COM-Port and network communication was active/opend but not used at the moment the interrupt occurred.


    I'm not wondering because the network connection was interrupted also with my first posts.


    I have also to mention, that network interrupts also occur in release mode (without use of USB).

    Hello,
    -update-
    Now I have another strange behavior. While debugging with visualStudio 2008 the tool Microsoft ActiveSync played sound and shows me that I'm not connected with display any more. But the connection to debugger is still there and I can break and debug as usual. After a few minutes the connection to debugger also broke down.

    Hello,
    I have to say that it happened again with versions mentioned above.
    Now program was running in debug mode and nothing has been done. No user input. Serial port was opened but no communication took place.
    Then the USB connection to debugger was interrupted.

    Hello,
    I have now updated the libmodbus to version 3.0.2 and the kernel to 1.27 (bootloader 1.39) but there is the same problem.
    This time the connection was interrupted while program start (and maybe connect to serial port) in debug mode without compile optimization.

    Hello,
    yes I'm using on COM2 a serial Modbus RTU protocol to connect to an external machine.
    Settings are 9600,8,1,None.
    For that I'm using the free libmodbus library in version 3.0.1. http://www.libmodbus.org/
    For tests with connection I use a Modbus RTU Server v1.1. This can be downloaded on several freeware hosters like
    http://www.brothersoft.com/modbus-rtu-server-292457.html
    However, I'm not sure if that's the reason because I can't reproduce it.

    Hello,
    I have to tell you that the debug version with complete optimization has the same problems.
    I had one interrupt after creating a connection by serial interface. But I can't reproduce that.Maybe that was only good/bad luck?
    I can't remember the earlier interrupts had something to do with my serial connections. But could this be possible/a reason?

    Hello,
    I have optimized the release version with "maximize speed" (/O2) which has caused network interrupts.
    The debug version was without optimization and had also caused usb and network interrupts.
    Now I'm testing debug version with "complete optimization" (/Ox). Will write later if it's better.