叶帆工作室

嵌入式开发爱好者(十年开发经验,精通C/C++/VC/VB/C#...)

刘洪峰ID:yefanqiu
504906次访问,排名80好友0人,关注者137
微软MVP / CSDN 2008十大MVB/MSDN中文技术论坛版主
yefanqiu的文章
原创 215 篇
翻译 0 篇
转载 3 篇
评论 1058 篇
叶帆的公告
本博客原创文章,作者保留一切权利,需经作者同意后方可转载,转载时 请注明[叶帆工作室]及文章链接。yefan@vip.sina.com
【简介】叶帆[微软MVP]
【文章】叶帆文章列表
【软件】叶帆共享软件列表
最近评论
lvpeng52:我在无串口的笔记本电脑中安装wince 6.0, 按照http://www.cnblogs.com/walzer/archive/2008/07/10/744729.html方式安装了所有软件。

1. 但是发现 项目->属性->Debugger选项中没有CE Dump File Reader和Sample Device Emulator EXDI 2 Dr……
yefanqiu:知道这个软件,不过更深层次知识我目前也不清楚。
吴为仁:请问你熟悉神奇的Reflector软件吗?用它可以得到.NET的源码。请问Reflector输出的源码与真正的源码有什么区别?要注意那些问题?您这个MVP写一点此方面的东西,可否?
yefanqiu:在C#上直接调用该控件吧。
yefanqiu:这是支持两种不同字符集的函数(ANSI/Unicode)
文章分类
收藏
    相册
    叶帆照片
    【叶帆软件】
    [01]VB源码之友(V2.1.548)
    [02]API浏览器.net(V5.0)
    [03]叶帆成语词典(V2.0.8)
    [04]叶帆密码库(V1.2.8)
    【叶帆资源】
    DAO 2.0引擎
    叶帆快速通道
    Windows Embedded 专题
    中文MSDN
    叶帆圈子--工业自动化
    叶帆工作室(博客园)
    叶帆工控--工业自动化
    叶帆群组--工业应用开发
    微软中文技术论坛
    瑞康社区论坛
    叶帆友情链接
    张欣
    枕善居
    莫依
    葛涵涛
    郑建
    陈辉
    马宁
    马骐
    魏涛序
    黎波
    存档
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 .Net Micro Framework SDK 2.5 发布收藏

    新一篇: .Net Micro Framework研究—串口部署的困惑 | 旧一篇: FAT16文件系统解析(C#版本)

     3月6日,微软.Net Micro Framework SDK 2.5 在MSDN上提供了下载链接(http://www.microsoft.com/downloads/details.aspx?familyid=EB0EF2A6-03E2-402C-89A4-A636BD0080C5&displaylang=en)。

    安装最新版本的SDK之前,需要卸载掉原来的老版本。

    安装后,我初步看了一下,好像大的改动不多,以前我编写的MF程序都可以正常运行,至于新功能嘛,其发布文件上如是说:

    ===============================================================================
    What new in V2.5?
    ===============================================================================
    The V2.5 release includes a optionally installed beta release of the assemblies
    for the .NET managed Devices Profile for Web Services (DPWS) stack.
     
    Samples demonstrating how to create or use: 
     - hosted services on devices
     - clients on the desktop and on devices
     - Discovery and Eventing

    The .NET Micro Framework DPWS stack requires TCP/IP (Sockets) to function.
     
    Device firmware must be developed with the V2.5 version
    of the .NET Micro Framework Porting Kit in order to include
    the .NET Micro Framework TCP/IP network stack.


    ===============================================================================
    Issues
    ===============================================================================

    -------------------------------------------------------------------------------
    Issue:

    Calling SocketConnect on a second set of sockets causes an exception in the
    Emulator.

    Resolution:
    This is a known issue and will be fixed in a subsequent release.

    -------------------------------------------------------------------------------
    Issue:

    If a DispatchTimer is declared on the stack of a method, and the method
    returns, the DispatchTimer object may be garbage collected, even though
    still enabled.

    Resolution:
    Declare DispatchTimer objects as globals.

    -------------------------------------------------------------------------------
    Issue:

    The EnableDynamicDNS method of the
    Microsoft.SPOT.Net.NetworkInformation.NetworkInterface class is not
    implemented in the .NET Micro Framework TCP/IP stack, and will cause
    an exception if called from a managed application.

    Resolution:
    Dynamic DNS address assignment is accomplished by enabling DHCP after
    setting the static DNS address to 0.0.0.0.
     
    For example, the following code will cause DHCP to assign the DNS addresses:
     
            // set DNS to 0 so DHCP DNS is used
            string[] dns = new string[] { "0.0.0.0", "0.0.0.0" };
            interfaces[0].EnableStaticDns(dns);
            // Enable DHCP
            interfaces[0].EnableDhcp();

    When changing the network configuration in a managed application, it is
    necessary to follow these guidelines:
       1) When changing the network configuration from DHCP-enabled to static,
          it is necessary to update the static DNS addresses
       2) When changing the network configuration from static to DHCP-enabled,
          it is necessary to change the two DNS addresses to 0.0.0.0 so that DHCP
          will update the DNS addresses. If you want to then replace the
          DNS addresses provided by DHCP, call EnableStaticDns with the two
          replacement addresses.
     
    -------------------------------------------------------------------------------
    Issue:

    DHCP behavior on the .NET Micro Framework differs from DHCP on the desktop.
    The .NET Micro Framework makes three attempts within 7 seconds to obtain
    a DHCP lease at bootup. If the DHCP server is not found within this time frame,
    the framework ceases searching for a DHCP server. This is the intended behavior
    that application developers should be aware of since it differs from all
    versions of the Windows operating system.

    Because of the finite number of attempts to find the DHCP server, your device
    may not obtain a DHCP lease if it is not properly connected to the network at
    boot time.
     
    Resolution:
    Connect the device to the network before booting.

    -------------------------------------------------------------------------------
    Issue:

    Deploying multiple times to the iMXS platform in Visual Studio can cause
    deployment errors.

    Resolution
    A solution to this problem is being investigated for version 3.0. Currently,
    there are multiple workarounds available. Here are a few.
    1.  Press F5.
    2.  Restart the device.
    3.  Check to see if you have multiple devices with the same name.
    4.  Restart Visual Studio.

    -------------------------------------------------------------------------------
    Issue:

    There is a known issue when debugging a .NET Micro Framework V2.0 SP1
    application running on the V2.5 firmware. This typically happens when loading
    a resource.  This issue will be resolved in a subsequent release.

    Resolution
    Use the V2.5 SDK for all application development.

    -------------------------------------------------------------------------------
    Issue:

    Dns.GetHostEntry with an empty input string ("") will return the local
    IP address

    Resolution:
    This is by design and expected behavior.

    -------------------------------------------------------------------------------
    Issue:

    After deploying an application from Visual Studio, the device is rebooted. In
    some cases, DHCP can cause Visual Studio to time out while waiting for a
    reconnect, preventing Visual Studio from debugging the device.

    Resolution:
    Add a registry key and value to increase the amount of time Visual Studio will
    wait for a reconnect. The default of 5 seconds may be extended by creating the
    following key and setting its timeout, retries, and override values:

    HKCurrentUser\
      Software\
        Microsoft\
          .NetMicroFramework\
            NonVersionSpecific\
              Timing\
                AnyDevice

    'timeout' (DWORD): milliseconds to wait before retrying
        (constrained to 50 < timeout < 60000)
    'retries' (DWORD): count of retries to attempt
        (constrained to 1 < retries < 1000)
    'override' (DWORD): if present and non-zero, ignore constraints above,
        and attempt to apply any valid DWORD values.

    If any one of the values provided is out of bounds or malformed, it is
    silently ignored and the default values remain in effect. However, the others
    that are valid are still be applied.

    The default values are as in v2 SP1: timeout = 100 for platforms that support
    a soft reboot, 1000 otherwise; retries = 10.

    -------------------------------------------------------------------------------
    Issue:

    Calling a NetworkInterface method that changes the IP address will invalidate
    any bound sockets.

    Resolution:
    If running as a server, re-bind any open sockets after any IP address change.

    进一步的详情,等我研究后在说。

    发表于 @ 2008年03月21日 18:12:00|评论(loading...)|编辑

    新一篇: .Net Micro Framework研究—串口部署的困惑 | 旧一篇: FAT16文件系统解析(C#版本)

    评论

    #jun2ran 发表于2008-03-21 19:44:58  IP: 221.237.115.*
    大哥,好像3.5的都发布了啊。怎么还是2.5的啊?
    #yefanqiu 发表于2008-03-21 21:41:27  IP: 221.217.150.*
    大哥(.Net Framework)发布的是3.5,小弟(.Net Micro Framework)发布的是2.5
    #jacle169 发表于2008-05-14 13:41:37  IP: 116.16.69.*
    呵呵.你好!又是我,我准备学习.NET Micro Framework 2.5,目标是简单的工控,例如:开关量,请问我应该准备什么东西,如开发板要用到那些型号,学习资源有那些,谢谢!
    #yefanqiu 发表于2008-05-15 11:57:52  IP: 61.50.221.*
    你可以联系Digi买它的测试板卡,当然也可以用模拟器,我曾经上传了一个可以调试IO的模拟器(CSDN下载)。
    #jacle169 发表于2008-05-15 15:05:38  IP: 219.132.95.*
    digi很多产品,我应该买那个类型型号的测试板卡呢?!
    #yefanqiu 发表于2008-05-15 15:15:06  IP: 61.50.221.*
    如果你仅对串口、网口通信、IO感兴趣,建议买最便宜的板子,就是我blog上介绍的那种。如果你对图像感兴趣,可以考虑购买飞思卡尔的开发板。详细情况你可以登录他们的网站看看。
    #jacle169 发表于2008-05-17 17:50:58  IP: 125.89.143.*
    请问那里能下载到你的那个模拟器?!我搜不到!谢谢
    #jacle169 发表于2008-05-17 17:56:33  IP: 125.89.143.*
    ok!找到了
    发表评论  


    登录
    Csdn Blog version 3.1a
    Copyright © 叶帆