值得期待的.Net Micro Framework 3.0
在上一个版本V2.5,不仅串口不支持修改奇偶校验、数据位,并且也不支持以太网编程外,图形编程更是不完善,除矩形外,其它图形连线宽和画刷填充都不支持。也没有文件系统,仅支持简单的并且不甚可靠的Flash对象存储,总之离实用还是有很大差距的。
没有想到将要推出的.Net Micro Framework 3.0在此基础上迈了很大一步,3.0版本将包括一个新的文件系统,触摸屏支持,无线网络(wifi), USB及各种其它的硬件支持,此外模拟器也支持横竖屏切换。更令人期待的是.Net Micro Framework已经支持P/Invoke功能,有穿透.Net Micro Framework直接访问硬件的能力了,这样对一些要求实时性的项目可以避开MF的弱点,直接发挥底层硬件的性能了。
看一看MF3.0到底改进了什么,有什么功能值得我们期待?(详情请参见:http://blogs.msdn.com/netmfteam/archive/2008/06/06/opening-the-net-mf-3-0-kimono.aspx)
Interop: "Native code? We don't need no steekin native code!" Most of the time the C# managed code environment in .NET MF is ideal, but there are times when you might need to drop down to native code to add support for a feature or perform a time-critical operation. You can do this today in .NET MF 2.5, but it isn't particularily elegant. 3.0 changes that all allows you to link native code to managed code when you need to. Check out Steve Maillet's blog for more details.
Touchscreen: We're adding touchscreen support in v3, and that includes support for simple inking scenarios, allowing you to build a small kiosk that captures a credit card signature, for example.
Filesystem: Yep, there's a file system in v3. You can still use extended weak references, but it no longer is the only option for storing configuration or logging data to storage devices, like nand flash, which will also be supported.
VS2008: Goodbye Visual Studio 2005, Hello Visual Studio 2008! VS2005 served us well, but with the cool features in VS2008, we're excited to have full support for it in v3.
DPWS Tools: .NET MF v2.5 included a preview of Devices Profile for Web Services (DPWS, formerly known as WSD). NET MF 3.0 includes full support for DPWS *and* easy to use tools that weren't include in 2.5.
Wi-Fi: We're adding the infrastructure for Wi-Fi / 802.11. Partners will now be able to integrate Wi-Fi stacks, drivers, and supplicants in a standard way and interface with the rest of the TCP/IP stack. v3 will provide hooks for WEP, WPA/WPA2, and Windows Connect Now (WCN).
SSL: The TCP/IP stack in v3 will include support for SSL, allowing secure connections like HTTPS.
Serial enhancements: The serial model in v3 is being improved to more closely follow the .NET Framework implementation. This includes support for hardware flow control, e.g. RTS/CTS.
USB Device: You'll be able to create devices using .NET MF 3.0 which identify themselves as standard USB types when plugged into a PC. For example, you could create a small data logger which collects data from a sensor network and presents itself as a standard mass storage device when it is plugged into the PC using USB.
Fonts: The font support in version 3.0 is being greatly enhanced. Watch for more information about the specific capabilities and changes.
More cores: version 3.0 will support more hardware than any previous version of .NET Micro Framework. Stay tuned for more information from our partners as they announce their plans for .NET MF v3.0.
Emulator enhancements and diag enhancements are also included in v3.