Posts by fs-support_ZU

    Hello,


    all settings which adjusted by registry entries are saved by "reg save" with ndcucfg.exe (e.g. time zone settings, ...).


    All data which is placed in RAM got lost after power off. The folders contain the shortcuts (\windows\desktop) and MyDevice are RAM directories!
    I think two things may be possible:
    1. configure all required data in the WCE-Registy so that the shortcuts be written/read to/from \ffsdisk (please refer microsoft online help).
    2. save the shorcuts in \ffsdisk and copy them by boot up via a batchfile to \windows\desktop (the copy task must be done before explorer.exe is started).

    Hello,


    for download an image via USB/Ethernet you have to step into the bootloader. The "s" command is for update the EBOOT (and you step into stepping stone bootloader). For step into the bootloader press "shift+s"(="S") into the terminal program while power on NetDCU. Have you read the NetDCU3_bootloader.pdf? This function must work every time! Else someting is wrong (with the serial connector, the PC or the NetDCU).
    In the bootloader you can start the download by "de" (Ethernet) or "du" (USB). Type "h" for help.

    Hello,


    you will always get the original settings by "erase" the registry in the bootloader (command "R"). This resets the the registry to the default settings.


    But for your purpose you can also set:


    Code
    1. Reg open \Drivers\BuiltIn\OHCD
    2. Reg set val PortCount dword 1


    and delete the value "flags" under [HKLM]\Drivers\BuiltIn\USBFN.

    Hello,


    for update EBOOT you have to step into the stepping stone bootloader by enter "s" into DCUTermi connected with NDCUs debug line while power on (see eboot_update bitmap on your CD).


    For flash new image you can use USBLoader or EShell (both on CD). Using EShell please refer NetDCU3_Bootloader.pdf.

    Hello,


    you can not change the button text by using "MessageBox()". Is depends on the windows version you use (english, german,...).
    A simple solution is to overwrite CDialog for get your own message box and use string tables for adjust text. So you can also load different languages in your application.

    To modify regsitry using C++ is very easy. Because windows supports modifcation by functions of Winreg.h. Please refer the ms online help.


    E.g.

    How to set communiction time outs and DCB structure. This sample uses COM1: and COM2:. So you have to disable serial debug output (by step into the bootloader and type "O" ... ) and to remove ndcucfg from autostart (registry key HKLM\Init). Instead of this you can modify the program and use COM3: (connection between RX and TX).

    Files

    • RS232Test.zip

      (19.65 kB, downloaded 1,199 times, last: )

    Within your application you can overwrite the CWnd::PretranslateMessage() to handle messages before execution.
    From outside it may be the simplest solution to overlay a transparent window.

    Hello,


    i investigated the code (sample project) you send to me (and connect TX and RX of COM3 together):


    and you are right that the classes for controlling serial ports are memory intensive. But i can not detect a memory leak. You may use the library from http://www.opennetcf.org/CategoryView.aspx?category=Home for higher performance.


    I modified the code as fellowing:


    without the "sleep" i never (or rare) get data to read, because Read() is called before the data is written (38400 Baud !) and then data is discarded. I print out the data read in a console. The program works fine for hours! And the memory does not increase!
    Do i overlook something?

    Hello,


    i assume you are using the "X" for close the "second" form (Form2). I test to close the form by using a button (Button1) and it works fine:


    Code
    1. <System.Runtime.InteropServices.ComVisible(False)> Public Class Form2
    2. Private Sub Button1_Click(ByVal sender As System.Object,
    3. ByVal e As System.EventArgs)
    4. Handles Button1.Click
    5. Close()
    6. End Sub


    So i suggest the "X" does more then only closes the form. When i spy messages (by the EVC++ remote spy) i see the every dialog gets a series of varoius messages (WM_ACTIVATE, WM_SETFOCUS, ...). I think you have to "catch" the messages (and edit the message handlers - but best may be you refer a microsoft sample).

    Hello,
    i do not think that low memory causes this effect. Can you give accurate information about the memory in use?
    Which tool do you use for development?
    Can you also give detailed information about the behaviour you described (does this effect aready occur by two "dialogs" ...)? And how do you proceeding (sampe code)?

    You can use different types to perform your registry entries. But you have to record entries you made during development.
    E.g.:
    1. Use a tool to create CAB files for install your application (e.g. visual studio .net)
    2. Set entries (e.g. from your application) by using wce system functions for registry reading/writing (see winreg.h)
    3. Use "ndcucfg.exe". Create a textfile regarding the syntax of "ndcucfg.exe" (see sampes on CD e.g. under folder "Displaysettings" ).
    a) transmit the file via serial line using a terminal program (see "First Steps Docu")
    b) transmit the file via telnet/batchfile (ndcucfg -B\\hostname\folder\name.txt)
    c) you can also call the textfile local from "cmd.exe"

    I used same kernel (NetDCU6) and same ftpd.dll as you and start with default registry. My additional registy settings are as following:



    This configuration works without any problems! (also if i delete the value "Order" then the drivers default is used)